/* ===================
   PEST MODAL SYSTEM
   Easy Edit Section - Change overlay appearance, content layout, and styling here
   =================== */

/* PREVENT BACKGROUND SCROLLING WHEN MODAL IS OPEN */
body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* EASY EDIT SECTION - OVERLAY BACKGROUND */
.pest-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* ← Change this for overlay darkness */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* Highest priority for pest modals */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px); /* ← Change this for blur effect */
}

.pest-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* EASY EDIT SECTION - MODAL CONTENT CONTAINER */
.pest-modal-content {
    background-color: white;
    border-radius: 20px; /* ← Change this for corner rounding */
    padding: 40px; /* ← Change this for internal spacing */
    width: 90%; /* ← Change this for modal width */
    max-width: 1200px; /* ← Change this for maximum width */
    height: 90vh; /* ← Change this for modal height */
    max-height: calc(100vh - 2rem); /* Ensure modal doesn't exceed viewport on mobile landscape */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* ← Change this for shadow */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
}

.pest-modal-overlay.active .pest-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* EASY EDIT SECTION - CLOSE BUTTON */
.pest-modal-close {
    position: absolute;
    top: 20px; /* ← Change this for vertical position */
    right: 20px; /* ← Change this for horizontal position */
    background: none;
    border: none;
    font-size: 2rem; /* ← Change this for button size */
    color: var(--neutral-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.05); /* ← Change this for button background */
}

.pest-modal-close:hover {
    color: var(--dark-green);
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* EASY EDIT SECTION - MODAL TITLES */
.pest-modal-content h3 {
    color: var(--dark-green);
    margin-bottom: 30px;
    font-size: 2rem; /* ← Change this for title size */
    position: relative;
    padding-bottom: 15px;
}

.pest-modal-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.service-hero-caption::after {
    display: none !important;
}

/* EASY EDIT SECTION - TEXT CONTENT */
.pest-modal-content * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
    box-sizing: border-box;
}

.pest-modal-content h1,
.pest-modal-content h2,
.pest-modal-content h3,
.pest-modal-content h4,
.pest-modal-content h5,
.pest-modal-content h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
}

.pest-modal-content p,
.pest-modal-content li,
.pest-modal-content div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
}

/* ===================
   PEST CONTENT SECTIONS
   Easy Edit Section - Change layout and styling of pest information cards
   =================== */

/* EASY EDIT SECTION - PEST INFO CARDS */
.pest-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* ← Change this for spacing between cards */
    margin: 30px 0;
}

.pest-info-card {
    background: white;
    border-radius: 15px; /* ← Change this for card corner rounding */
    padding: 25px; /* ← Change this for card internal spacing */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* ← Change this for card shadow */
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pest-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(var(--primary-green-rgb), 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pest-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--primary-green-rgb), 0.2);
}

.pest-info-card:hover::before {
    opacity: 1;
}

.pest-info-card h4 {
    color: var(--dark-green);
    font-size: 1.2rem; /* ← Change this for card title size */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pest-info-card h4 i {
    margin-right: 10px;
    color: var(--primary-green);
    font-size: 1.4rem;
}

.pest-info-card p {
    color: var(--text-dark);
    font-size: 0.95rem; /* ← Change this for card text size */
    line-height: 1.6;
    margin: 0;
}

/* EASY EDIT SECTION - PEST GALLERY */
.pest-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px; /* ← Change this for image spacing */
    margin: 30px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* EASY EDIT SECTION - CONTROL METHODS */
.control-methods {
    margin: 30px 0;
}

.control-method {
    background: #f8f9fa; /* ← Change this for method card background */
    border-radius: 15px;
    padding: 20px; /* ← Change this for method card padding */
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.control-method:hover {
    background: white;
    border-color: var(--primary-green);
    transform: translateX(10px);
}

.control-method h5 {
    color: var(--dark-green);
    margin-bottom: 10px;
    font-size: 1.1rem; /* ← Change this for method title size */
}

/* EASY EDIT SECTION - PROFESSIONAL TIPS TIMELINE */
.pro-tips-timeline {
    position: relative;
    padding-left: 30px;
    margin: 30px 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-green);
    opacity: 0.3;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-green);
}

.timeline-item:hover::after {
    transform: scale(1.5);
    transition: transform 0.3s ease;
}

/* EASY EDIT SECTION - TABS NAVIGATION */
.pest-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pest-tab {
    padding: 10px 20px;
    border-radius: 50px;
    background: none;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pest-tab.active {
    background: var(--primary-green);
    color: white;
}

.pest-tab:hover:not(.active) {
    background: rgba(var(--primary-green-rgb), 0.1);
}

/* EASY EDIT SECTION - TAB CONTENT */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* EASY EDIT SECTION - PEST CONTENT SECTIONS */
.pest-behavior-section,
.pest-treatment-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
}

.pest-behavior-section h4,
.pest-treatment-section h4 {
    color: var(--dark-green);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.pest-behavior-section p,
.pest-treatment-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* EASY EDIT SECTION - CLEAN OVERVIEW SECTIONS */
.pest-hero-image {
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.pest-hero-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    padding: 15px;
    box-sizing: border-box;
    border: 2px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pest-hero-image:hover {
    background-color: #f0f0f0;
}

.pest-hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pest-description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
    margin-bottom: 25px;
}

.pest-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    color: #333;
}

.pest-accordion {
    margin-bottom: 30px;
}

.pest-cta {
    text-align: center;
    margin-top: 30px;
}

.pest-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff5722, #ff9800);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
}

.pest-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.identification-tips {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
}

.identification-tips h5 {
    color: var(--dark-green);
    margin-bottom: 15px;
}

.identification-tips ul {
    margin: 0;
    padding-left: 20px;
}

/* EASY EDIT SECTION - ACCORDION STYLING */
.pest-accordion {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.accordion-header:hover {
    background: #f8f9fa;
    border-left-color: var(--primary-green);
}

.accordion-item.active .accordion-header {
    background: #f8f9fa;
    border-left-color: var(--primary-green);
}

.accordion-header span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-green);
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.accordion-content {
    display: none;
    background: white;
    transition: all 0.3s ease;
}

.accordion-content p {
    padding: 20px 25px;
    margin: 0;
    line-height: 1.6;
    color: #666;
    border-left: 4px solid var(--primary-green);
    background: #f8f9fa;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================
   PEST CONTENT STRUCTURED LAYOUT
   Easy Edit Section - Main content layout for pest information
   =================== */

.pest-content-structured {
    /* Add any structured content styling here */
}

.pest-risks-section {
    margin-bottom: 40px;
}

.pest-risks-section h3 {
    color: var(--dark-green);
    margin-bottom: 20px;
    font-size: 1.5rem; /* ← Change this for section title size */
}

.risks-text-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
}

.pest-identification-section {
    margin-bottom: 40px;
}

.pest-identification-section h3 {
    color: var(--dark-green);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.identification-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
    height: 60vh; /* Fill most of the screen vertically */
}

.id-image-hover {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.id-image-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.id-image-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-height: 180px;
}

.id-image-hover:hover img {
    transform: scale(1.05);
}

/* Image labels overlay */
.id-image-hover div {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
    color: white !important;
    padding: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 !important;
}

/* ===================
   RESPONSIVE DESIGN
   Easy Edit Section - Mobile and tablet adjustments
   =================== */

@media (max-width: 768px) {
    .pest-modal-content {
        width: 95%; /* ← Change this for mobile width */
        height: 95vh; /* ← Change this for mobile height */
        padding: 20px; /* ← Change this for mobile padding */
    }

    .pest-modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }

    .pest-info-grid {
        grid-template-columns: 1fr;
    }

    .pest-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .identification-images-grid {
        grid-template-columns: repeat(2, 1fr);
        height: 50vh;
        gap: 8px;
    }
    
    .id-image-hover {
        min-height: 150px;
    }

    .pest-tabs {
        justify-content: center;
    }
    
    /* Accordion responsive adjustments */
    .accordion-header {
        padding: 15px 20px;
    }
    
    .accordion-header span {
        font-size: 1rem;
    }
    
    .accordion-content p {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    /* Clean overview sections responsive */
    .pest-hero-image img {
        max-height: 250px;
        max-width: 100%;
        padding: 12px;
        border: 1px solid #f0f0f0;
    }
    
    .pest-description {
        padding: 20px;
    }
    
    .pest-description p {
        font-size: 1rem;
    }
    
    /* Responsive hero image container */
    .pest-hero-image {
        min-height: 180px;
        padding: 8px;
    }
}

/* ===================
   END OF PEST MODAL STYLES
   =================== */ 