/* =========================================
   MOBILE & TABLET RESPONSIVE NAVBAR
========================================= */

/* Desktop hides mobile-only elements */
@media (min-width: 1200px) {
    .menu-toggle {
        display: none !important;
    }

    .mobile-nav-footer {
        display: none !important;
    }
}

@media (max-width: 1199px) {

    /* -------------------------------------
       TOP UTILITY STRIP (.gov-strip)
    ------------------------------------- */
    .gov-strip {
        padding: 4px 18px;
        min-height: 38px;
    }

    .header-tagline {
        display: none !important;
    }

    @media (max-width: 767px) {
        .header-enquiry {
            display: none !important;
        }

        .gov-crest-img {
            height: 28px !important;
        }

        .wordmark-title {
            font-size: 10.5px !important;
        }

        .gov-strip {
            padding: 4px 12px;
        }
    }

    /* -------------------------------------
       NAV ROW
    ------------------------------------- */
    .nav-row {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap !important;
        min-height: 60px;
        padding: 8px 20px;
        gap: 12px;
    }

    .main-logo {
        flex: 0 0 auto;
    }

    .main-logo img {
        width: 130px;
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* -------------------------------------
       HAMBURGER BUTTON
    ------------------------------------- */
    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 0;
        background: #f4f8f4;
        border: 1.5px solid #d0dcd2;
        border-radius: 8px;
        color: #174d20;
        cursor: pointer;
        z-index: 1002;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
    }

    .menu-toggle:hover,
    .menu-toggle:focus {
        background: #eaf3eb;
        border-color: #174d20;
        color: #0c3d25;
        outline: none;
    }

    .menu-toggle iconify-icon {
        font-size: 24px;
        pointer-events: none;
    }

    /* -------------------------------------
       DESKTOP BUTTONS IN NAV ROW
    ------------------------------------- */
    .nav-row>.login-btn {
        display: none !important;
    }

    .nav-row>.nav-book-btn {
        display: inline-flex !important;
        padding: 0 14px;
        height: 36px;
        font-size: 13px;
        border-radius: 6px;
        white-space: nowrap;
    }

    @media (max-width: 575px) {
        .nav-row>.nav-book-btn {
            display: none !important;
        }

        .main-logo img {
            width: 115px;
        }

        .nav-row {
            padding: 6px 14px;
            min-height: 54px;
        }
    }

    /* -------------------------------------
       MOBILE DRAWER MENU
    ------------------------------------- */
    .main-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 65px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 6px 0 20px;
        margin: 0;
        background: #ffffff;
        border-top: 1px solid #e8ede8;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1001;
    }

    .main-menu.open {
        display: flex !important;
        animation: navSlideDown 0.22s ease forwards;
    }

    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* -------------------------------------
       NAV ITEMS IN DRAWER
    ------------------------------------- */
    .main-menu .nav-item {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        border-bottom: 1px solid #f0f3f0;
        flex-shrink: 0;
    }

    .main-menu .nav-item>a,
    .main-menu .nav-item>button {
        width: 100%;
        min-height: 48px;
        height: auto;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border: 0;
        color: #1a3c24;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        text-align: left;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }

    .main-menu .nav-item>a:hover,
    .main-menu .nav-item>a:active,
    .main-menu .nav-item>button:hover,
    .main-menu .nav-item>button:active {
        background: #f4f8f4;
        color: #0c3d25;
    }

    .main-menu .nav-chevron {
        font-size: 20px;
        color: #728775;
        transition: transform 0.25s ease, color 0.2s ease;
        margin-left: auto;
        display: inline-block;
    }

    .main-menu .nav-item.has-dropdown.open>button .nav-chevron {
        transform: rotate(180deg);
        color: #174d20;
    }

    /* -------------------------------------
       DROPDOWN MEGA-PANEL (ACCORDION)
    ------------------------------------- */
    .main-menu .mega-panel,
    .main-menu .mega-panel--wide {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 2px 0 !important;
        margin: 0 !important;
        background: #f8faf8 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        grid-template-columns: 1fr !important;
    }

    .main-menu .nav-item.has-dropdown.open>.mega-panel,
    .main-menu .nav-item.has-dropdown.open>.mega-panel--wide {
        display: block !important;
    }

    .main-menu .mega-panel a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 42px;
        padding: 10px 20px 10px 32px;
        border-top: 1px solid #edf1ed;
        color: #384e3d;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
    }

    .main-menu .mega-panel a:hover,
    .main-menu .mega-panel a:active {
        background: #eaf3ea;
        color: #174d20;
    }

    .main-menu .mega-panel a iconify-icon {
        font-size: 18px;
        color: #174d20;
        flex-shrink: 0;
    }

    /* -------------------------------------
       MOBILE FOOTER ACTIONS
    ------------------------------------- */
    .mobile-nav-footer {
        padding: 16px 20px 8px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: #ffffff;
        border-top: 2px solid #eef2ee;
        margin-top: 8px;
    }

    .mobile-nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mobile-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 42px;
        padding: 0 14px;
        background: #f4f8f4;
        border: 1.5px solid #c9d8cb;
        border-radius: 8px;
        color: #174d20;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .mobile-book-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 42px;
        padding: 0 14px;
        background: #174d20;
        border: 1.5px solid #174d20;
        border-radius: 8px;
        color: #ffffff !important;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-nav-helpline {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: #556658;
        padding-top: 4px;
    }

    .mobile-nav-helpline iconify-icon {
        color: #f1ab00;
        font-size: 16px;
        flex-shrink: 0;
    }

    .main-menu .active::after {
        display: none !important;
    }
}


/* ========================================= TABLET ========================================= */
@media (max-width: 991px) {
    .story-hero {
        min-height: 370px;
        height: 80vh;
    }

    .story-hero h1 {
        font-size: 75px;
    }
}

/* ========================================= MOBILE ========================================= */
@media (max-width: 767px) {
    .story-hero {
        min-height: 400px;
        height: auto;
        padding: 110px 0 80px;
        align-items: center;
    }

    .story-hero-bg img {
        object-position: 62% center;
    }

    .story-hero-overlay {
        background: linear-gradient(90deg, rgb(8 47 32 / 45%) 0%, rgb(8 47 32 / 11%) 48%, rgba(12, 61, 37, 0.40) 80%, rgb(8 47 32 / 0%) 100%), linear-gradient(0deg, rgb(8 47 32 / 0%) 0%, transparent 60%);
    }

    .story-hero-content {
        padding-top: 20px;
    }

    .story-hero-breadcrumb {
        margin-bottom: 35px;
        /* font-size: 8px; */
    }

    .story-hero h1 {
        font-size: 55px;
        line-height: .95;
        letter-spacing: -3px;
        margin: 18px 0 25px;
    }

    .story-hero-content>p {
        font-size: 14px;
        line-height: 1.8;
    }

    .story-hero-meta {
        gap: 20px;
        margin-top: 40px;
        flex-wrap: wrap;
    }

    .hero-meta-item strong {
        font-size: 23px;
    }

    .hero-scroll {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        justify-content: space-between;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .safari-details-section {
        padding: 65px 0;
    }

    .details-title {
        font-size: var(--font-size);
        letter-spacing: -2px;
        margin-bottom: 20px;
    }

    .details-intro {
        font-size: var(--font-size);
    }

}

@media (max-width: 991px) {

    .director-welcome {
        grid-template-columns: 200px 1fr;
        gap: 35px;
        padding: 40px 30px;
    }

    .director-photo-placeholder {
        width: 180px;
        height: 180px;
    }

    .director-quote blockquote {
        font-size: 19px;
        line-height: 1.65;
    }

    .director-sig {
        font-size: 14px;
    }

    .director-sig small {
        font-size: 12px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .director-welcome {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: 35px 20px;
        text-align: center;
    }

    .director-photo-placeholder {
        width: 150px;
        height: 150px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .director-photo-placeholder iconify-icon {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        font-size: 36px !important;
    }

    .director-quote {
        width: 100%;
    }

    .director-quote blockquote {
        font-size: 17px;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .director-sig {
        font-size: 13px;
        line-height: 1.5;
    }

    .director-sig small {
        display: block;
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.5;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .director-welcome {
        padding: 30px 15px;
        gap: 22px;
    }

    .director-photo-placeholder {
        width: 125px;
        height: 125px;
    }

    .director-photo-placeholder iconify-icon {
        font-size: 32px !important;
    }

    .director-quote blockquote {
        font-size: 16px;
        line-height: 1.65;
    }

    .director-sig {
        font-size: 12px;
    }

    .director-sig small {
        font-size: 10.5px;
    }
}

/* =========================================================
   RESPONSIVE HERO ACTION BUTTONS
========================================================= */

@media (max-width: 767px) {

    .hc-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;

        /* pushes actions toward bottom if parent is flex */
        margin-top: auto;
        padding-top: 30px;
    }

    .hc-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* =========================================================
   MOBILE HERO LAYOUT
========================================================= */

@media (max-width: 767px) {

    /* Hero/content wrapper */
    .hero-content {
        position: relative;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 30px 20px 25px;
    }

    /* TOP CONTENT */
    .main-content {
        width: 100%;
        margin-top: auto;
        padding-top: 45px;
    }

    .hc-eyebrow {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .hc-title {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .hc-desc {
        margin-bottom: 0;
    }

    /* BOTTOM BUTTONS */
    .hc-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;

        margin-top: auto;
        padding-top: 230px;
        margin-bottom: 33px;
    }

    .hc-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .melghat-destination-card {
        padding-bottom: 55px;
    }

    .melghat-destination-link {
        bottom: 18px;
        font-size: 14px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .melghat-destination-card {
        height: auto;
        min-height: 300px;
        padding-bottom: 60px;
    }

    .melghat-destination-link {
        left: 0;
        bottom: 20px;

        font-size: 14px;
        gap: 7px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .melghat-destination-card {
        min-height: 280px;
        padding-bottom: 55px;
    }

    .melghat-destination-link {
        bottom: 18px;
        font-size: 13px;
        margin-left: 77px;
    }
}

/* =========================================================
   RESPONSIVE BOOKING PLANS
========================================================= */

@media (max-width: 991px) {

    .booking-plans {
        row-gap: 24px;
    }

    .booking-plans>.col {
        flex: 0 0 100%;
        width: 100%;
    }

    .booking-plan {
        height: 100%;
    }

    .booking-plan-body {
        gap: 20px;
        padding: 24px;
    }

    .booking-plan-info h3 {
        font-size: 22px;
    }

    .booking-plan-info p {
        font-size: 15px;
        line-height: 1.6;
    }

    .booking-plan-bottom {
        gap: 20px;
        padding: 18px 24px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .booking-options .booking-plans {
        display: grid !important;
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .booking-plans {
        margin-left: 0;
        margin-right: 0;
        row-gap: 20px;
    }

    .booking-plans>.col {
        padding-left: 0;
        padding-right: 0;
    }

    .booking-plan {
        width: 100%;
        overflow: hidden;
    }

    .booking-plan-top {
        padding: 14px 18px;
    }

    .booking-plan-label {
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .booking-plan-body {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 18px;
    }

    .booking-plan-icon {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .booking-plan-icon i {
        font-size: 20px !important;
    }

    .booking-plan-info {
        min-width: 0;
        flex: 1;
    }

    .booking-plan-info h3 {
        margin-bottom: 8px;
        font-size: 20px;
        line-height: 1.3;
    }

    .booking-plan-info p {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .booking-plan-features {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .booking-plan-features span {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        font-size: 13px;
        line-height: 1.5;
    }

    .booking-plan-bottom {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;

        padding: 16px 18px;
    }

    .booking-plan-bottom>span {
        font-size: 13px;
    }

    .booking-actions {
        width: 100%;
    }

    .booking-actions .booking-next {
        width: 100%;
        min-height: 44px;
        padding: 10px 15px;
        font-size: 13px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .booking-plan-body {
        gap: 12px;
        padding: 18px 15px;
    }

    .booking-plan-icon {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
    }

    .booking-plan-icon i {
        font-size: 18px !important;
    }

    .booking-plan-info h3 {
        font-size: 18px;
    }

    .booking-plan-info p {
        font-size: 13px;
    }

    .booking-plan-features span {
        font-size: 12px;
    }

    .booking-plan-bottom {
        padding: 15px;
    }

    .booking-actions .booking-next {
        font-size: 12px;
    }
}
/* =========================================================
   RESPONSIVE VISITOR RULE STRIP
========================================================= */

@media (max-width: 991px) {

    .visitor-rule-strip {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .visitor-rule {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    .visitor-rule-icon {
        flex-shrink: 0;
    }

    .visitor-rule strong {
        display: block;
        font-size: 14px;
        margin-bottom: 3px;
    }

    .visitor-rule span {
        display: block;
        font-size: 12px;
        line-height: 1.5;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .visitor-rule-strip {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .visitor-rule {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 14px 16px;
    }

    .visitor-rule-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .visitor-rule-icon i {
        font-size: 17px !important;
    }

    .visitor-rule strong {
        display: block;
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 3px;
    }

    .visitor-rule span {
        display: block;
        font-size: 12px;
        line-height: 1.5;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .visitor-rule-strip {
        gap: 10px;
    }

    .visitor-rule {
        padding: 12px 13px;
        gap: 11px;
    }

    .visitor-rule-icon {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .visitor-rule-icon i {
        font-size: 16px !important;
    }

    .visitor-rule strong {
        font-size: 13px;
    }

    .visitor-rule span {
        font-size: 11px;
    }
}
/* =========================================================
   RESPONSIVE PENALTY GRID
========================================================= */

@media (max-width: 991px) {

    .penalty-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .penalty-card {
        height: 100%;
        padding: 25px 22px;
    }

    .penalty-card i {
        font-size: 28px !important;
    }

    .penalty-card h3 {
        font-size: 18px;
        line-height: 1.4;
        margin: 15px 0 10px;
    }

    .penalty-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .penalty-level {
        display: inline-block;
        margin-top: 12px;
        font-size: 11px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .penalty-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .penalty-card {
        width: 100%;
        padding: 22px 20px;
        box-sizing: border-box;
    }

    .penalty-card i {
        font-size: 26px !important;
    }

    .penalty-card h3 {
        font-size: 18px;
        line-height: 1.4;
        margin: 12px 0 8px;
    }

    .penalty-card p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .penalty-level {
        display: inline-block;
        font-size: 10px;
        letter-spacing: 0.8px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .penalty-grid {
        gap: 12px;
    }

    .penalty-card {
        padding: 18px 16px;
    }

    .penalty-card i {
        font-size: 24px !important;
    }

    .penalty-card h3 {
        font-size: 16px;
        line-height: 1.35;
    }

    .penalty-card p {
        font-size: 12px;
        line-height: 1.55;
    }

    .penalty-level {
        font-size: 9px;
    }
}

/* =========================================================
   RESPONSIVE PLANS GRID
========================================================= */

@media (max-width: 1199px) {

    .plans-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .plan-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .plan-actions {
        margin-top: auto;
        padding-top: 20px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767px) {

    .section-shell {
        padding: 25px 0 !important;
    }

    .plans-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .plan-card {
        width: 100%;
        min-width: 0;
        padding: 22px 20px;
        box-sizing: border-box;
    }

    .plan-badge {
        font-size: 11px;
    }

    .plan-card h3 {
        font-size: 20px;
        line-height: 1.35;
        margin-top: 12px;
    }

    .plan-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .plan-actions {
        width: 100%;
        margin-top: auto;
        padding-top: 18px;
    }

    .btn-download {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-sizing: border-box;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .section-shell {
        padding: 20px 0 !important;
    }

    .plans-grid {
        gap: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .plan-card {
        padding: 18px 16px;
    }

    .plan-badge {
        font-size: 10px;
    }

    .plan-card h3 {
        font-size: 17px;
        line-height: 1.35;
    }

    .plan-card p {
        font-size: 13px;
        line-height: 1.55;
    }

    .plan-actions {
        padding-top: 15px;
    }

    .btn-download {
        min-height: 42px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .btn-download iconify-icon {
        font-size: 17px;
    }
}