/* =========================================================
   AM TOUR — PUBLIC HOMEPAGE
   Full-width responsive layout
   PHP 7.4 project | No external animation dependencies
   ========================================================= */

.amt-homepage {
    --amt-navy: #102d46;
    --amt-blue: #087cae;
    --amt-blue-dark: #075b83;
    --amt-gold: #f4bd45;
    --amt-text: #26394a;
    --amt-muted: #718096;
    --amt-surface: #ffffff;
    --amt-soft: #f4f7fb;

    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    color: var(--amt-text);
}

.amt-homepage *,
.amt-homepage *::before,
.amt-homepage *::after {
    box-sizing: border-box;
}

.amt-homepage > section {
    width: 100%;
    max-width: none;
}

.amt-homepage .amt-home-inner {
    width: min(1440px, calc(100% - 64px));
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   HERO
   ========================================================= */

.amt-homepage .amt-everest-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    

	min-height: 500px;
	height: min(620px, calc(100vh - 130px)); 

    
    padding: 45px 0 65px;
    isolation: isolate;
    background-image: url("../../img/hero/everest-hero.webp");
    background-position: center 44%;
    background-repeat: no-repeat;
    background-size: cover;

}

.amt-homepage .amt-everest-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(3, 24, 40, .80) 0%,
        rgba(5, 38, 59, .59) 52%,
        rgba(5, 38, 59, .30) 100%
    );
}

.amt-homepage .amt-everest-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.amt-homepage .amt-home-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #fff;
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.amt-homepage .amt-everest-content h1 {
    max-width: 950px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.35rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 25px rgba(0, 0, 0, .3);
}

.amt-homepage .amt-everest-content h1 span {
    display: block;
    color: #ffd477;
}

.amt-homepage .amt-everest-description {
    max-width: 700px;
    margin: 0 auto 23px;
    color: rgba(255, 255, 255, .95);
    font-size: 1rem;
    line-height: 1.65;
}

.amt-homepage .amt-tour-search {
    width: 100%;
    max-width: 830px;
    margin: 0 auto;
    padding: 17px 19px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
    text-align: left;
}


.amt-homepage .amt-tour-search-label {
    display: flex;
    flex: 0 0 185px;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--amt-navy);
    font-size: .88rem;
    font-weight: 700;
}


.amt-homepage .amt-tour-search-controls {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
    gap: 11px;
}

.amt-homepage .amt-tour-search-controls input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 49px;
    padding: 11px 15px;
    border: 1px solid #d9e1e9;
    border-radius: 9px;
    outline: none;
    color: var(--amt-text);
    background: #fff;
    font-size: .96rem;
}

.amt-homepage .amt-tour-search-controls input:focus {
    border-color: var(--amt-blue);
    box-shadow: 0 0 0 3px rgba(8, 124, 174, .12);
}

.amt-homepage .amt-tour-search-button {
    min-height: 49px;
    padding: 10px 23px;
    border: 0;
    border-radius: 9px;
    white-space: nowrap;
    font-weight: 700;
}

.amt-homepage .amt-everest-trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 17px;
    color: #fff;
    font-size: .91rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.amt-homepage .amt-everest-trust-line i {
    color: #ffd477;
}

.amt-homepage .amt-hero-scroll {
    position: absolute;
    z-index: 2;
    bottom: 13px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    text-decoration: none;
    transform: translateX(-50%);
    transition: background .2s ease, transform .2s ease;
}

.amt-homepage .amt-hero-scroll i {
    font-size: 1.15rem;
}

.amt-homepage .amt-hero-scroll:hover {
    color: var(--amt-navy);
    background: #fff;
    transform: translate(-50%, -3px);
}

/* =========================================================
   SHARED SECTION HEADINGS
   ========================================================= */

.amt-homepage .amt-home-section-heading {
    max-width: 850px;
    margin: 0 auto 39px;
    text-align: center;
}

.amt-homepage .amt-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--amt-blue);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.amt-homepage .amt-home-section-heading h2 {
    margin: 0 0 13px;
    color: var(--amt-navy);
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.2;
}

.amt-homepage .amt-home-section-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--amt-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================================================
   FEATURED TOUR SECTION
   ========================================================= */

.amt-homepage .amt-home-featured {
    padding: 76px 0 82px;
    background: #f5f8fc;
}

.amt-homepage .amt-home-tour-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 25px;
    width: 100%;
}

.amt-homepage .amt-home-tour-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 19px rgba(20, 49, 75, .065);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.amt-homepage .amt-home-tour-card:hover {
    border-color: rgba(8, 124, 174, .25);
    box-shadow: 0 17px 36px rgba(20, 49, 75, .14);
    transform: translateY(-6px);
}

.amt-homepage .amt-home-tour-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 15px 15px 0 0;
    background: #e8eef4;
}

.amt-homepage .amt-home-tour-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.amt-homepage .amt-home-tour-card:hover .amt-home-tour-image img {
    transform: scale(1.055);
}

.amt-homepage .amt-home-tour-discount {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 1;
    padding: 6px 11px;
    border-radius: 6px;
    color: #fff;
    background: #d84b43;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

.amt-homepage .amt-home-tour-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 17px 17px 16px;
}

.amt-homepage .amt-home-tour-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 23px;
    margin-bottom: 10px;
}

.amt-homepage .amt-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d99a16;
    font-size: .88rem;
}

.amt-homepage .amt-rating-stars i {
    color: #f5b82e !important;
    font-size: .96rem;
    line-height: 1;
    -webkit-text-fill-color: #f5b82e;
}

.amt-homepage .amt-rating-stars strong {
    color: #26394a;
    font-size: .86rem;
    font-weight: 800;
}

.amt-homepage .amt-rating-count {
    color: #8995a3;
    font-size: .76rem;
}

.amt-homepage .amt-home-tour-title {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 11px;
    overflow: hidden;
    color: var(--amt-navy);
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.42;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.amt-homepage .amt-home-tour-title a,
.amt-homepage .amt-home-tour-title a:visited {
    color: var(--amt-navy) !important;
    text-decoration: none !important;
    text-underline-offset: 0 !important;
}

.amt-homepage .amt-home-tour-title a:hover {
    color: var(--amt-blue) !important;
    text-decoration: none !important;
}

.amt-homepage .amt-home-tour-duration {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    color: #748395;
    font-size: .82rem;
}

.amt-homepage .amt-home-tour-duration i {
    color: var(--amt-blue);
    font-size: .9rem;
}

.amt-homepage .amt-home-tour-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #edf0f4;
}

.amt-homepage .amt-home-tour-price {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 3px;
}

.amt-homepage .amt-price-label {
    color: #8491a0;
    font-size: .72rem;
    font-weight: 600;
}

.amt-homepage .amt-price-current {
    color: var(--amt-navy);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.amt-homepage .amt-price-original {
    color: #929eaa;
    font-size: .78rem;
}

.amt-homepage .amt-price-contact {
    color: var(--amt-blue-dark);
    font-size: .87rem;
    font-weight: 750;
}

.amt-homepage .amt-home-tour-link {
    display: inline-flex;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 50%;
    color: #fff !important;
    background: linear-gradient(135deg, #0789bb, #075b83);
    box-shadow: 0 5px 13px rgba(8, 124, 174, .25);
    text-decoration: none !important;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.amt-homepage .amt-home-tour-link i {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 700;
}

.amt-homepage .amt-home-tour-link:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #075b83, #043c5c);
    box-shadow: 0 8px 18px rgba(8, 124, 174, .32);
    transform: translateX(3px);
}

/* Tax information tooltip */
.amt-homepage .amt-home-tax-note {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #68798a;
    font-size: .72rem;
    line-height: 1.4;
    cursor: help;
    outline-offset: 3px;
}

.amt-homepage .amt-home-tax-note > i {
    color: var(--amt-blue);
    font-size: .85rem;
}

.amt-homepage .amt-home-tax-note::after {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 10px);
    left: 0;
    width: max-content;
    max-width: min(270px, 75vw);
    padding: 9px 12px;
    border-radius: 7px;
    color: #fff;
    background: #17364e;
    content: attr(data-tooltip);
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.amt-homepage .amt-home-tax-note::before {
    position: absolute;
    z-index: 21;
    bottom: calc(100% + 3px);
    left: 12px;
    border: 7px solid transparent;
    border-top-color: #17364e;
    content: "";
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.amt-homepage .amt-home-tax-note:hover::after,
.amt-homepage .amt-home-tax-note:focus::after,
.amt-homepage .amt-home-tax-note:hover::before,
.amt-homepage .amt-home-tax-note:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.amt-homepage .amt-home-featured-action {
    margin-top: 39px;
    text-align: center;
}

.amt-homepage .amt-home-no-tours {
    padding: 35px 20px;
    border: 1px dashed #ccd7e2;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.amt-homepage .amt-home-no-tours > i {
    color: var(--amt-blue);
    font-size: 2rem;
}

.amt-homepage .amt-home-no-tours p {
    margin: 12px 0 18px;
    color: var(--amt-muted);
}

/* =========================================================
   TRAVEL EXPERIENCE CARDS
   ========================================================= */

.amt-homepage .amt-home-intro {
    padding: 78px 0;
    background: #fff;
}

.amt-homepage .amt-home-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.amt-homepage .amt-home-service-card {
    min-width: 0;
    padding: 30px 27px;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(20, 49, 75, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.amt-homepage .amt-home-service-card:hover {
    box-shadow: 0 15px 32px rgba(20, 49, 75, .11);
    transform: translateY(-5px);
}

.amt-homepage .amt-home-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 19px;
    border-radius: 14px;
    color: var(--amt-blue);
    background: #eaf5fa;
    font-size: 1.55rem;
}

.amt-homepage .amt-home-service-card h3 {
    margin: 0 0 11px;
    color: var(--amt-navy);
    font-size: 1.17rem;
    font-weight: 800;
}

.amt-homepage .amt-home-service-card p {
    margin: 0 0 18px;
    color: var(--amt-muted);
    font-size: .91rem;
    line-height: 1.7;
}

.amt-homepage .amt-home-service-card > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amt-blue-dark);
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
}

.amt-homepage .amt-home-service-card > a:hover {
    color: var(--amt-blue);
}

/* =========================================================
   WHY TRAVEL — INDEPENDENT FULL-WIDTH SECTION
   ========================================================= */

.amt-homepage .amt-home-why {
    display: block;
    width: 100%;
    max-width: none;
    padding: 82px 0;
    background: #edf3f8;
}

.amt-homepage .amt-home-why-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(35px, 5vw, 75px);
    width: min(1500px, calc(100% - 80px));
    max-width: 1500px;
    margin: 0 auto;
}

.amt-homepage .amt-home-why-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-width: 0;
    min-height: 470px;
    overflow: hidden;
    border-radius: 20px;
    background-image:
        linear-gradient(
            180deg,
            rgba(5, 30, 45, .02),
            rgba(5, 30, 45, .42)
        ),
        url("../../img/hero/himalaya-story.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 17px 42px rgba(12, 39, 60, .16);
}

.amt-homepage .amt-home-image-caption {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px 22px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 9px;
    color: #fff;
    background: rgba(5, 30, 45, .68);
    font-size: .88rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.amt-homepage .amt-home-image-caption i {
    color: #ffd477;
}

.amt-homepage .amt-home-why-content {
    width: 100%;
    max-width: 650px;
    min-width: 0;
}

.amt-homepage .amt-home-why-content h2 {
    margin: 0 0 19px;
    color: var(--amt-navy);
    font-size: clamp(2rem, 3.3vw, 3.1rem);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -.7px;
}

.amt-homepage .amt-home-why-content > p {
    margin: 0 0 21px;
    color: #68798a;
    font-size: 1rem;
    line-height: 1.8;
}

.amt-homepage .amt-home-benefits {
    display: grid;
    gap: 13px;
    margin: 0 0 27px;
    padding: 0;
    list-style: none;
}

.amt-homepage .amt-home-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #354b5e;
    font-size: .94rem;
    line-height: 1.5;
}

.amt-homepage .amt-home-benefits li i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #15966a;
    font-size: 1.05rem;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.amt-homepage .amt-home-cta {
    padding: 75px 0;
    color: #fff;
    background-image:
        linear-gradient(
            90deg,
            rgba(5, 39, 59, .91),
            rgba(7, 69, 96, .80)
        ),
        url("../../img/hero/nepal-journey.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.amt-homepage .amt-home-cta-content {
    text-align: center;
}

.amt-homepage .amt-home-cta-content h2 {
    margin: 8px 0 13px;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 850;
}

.amt-homepage .amt-home-cta-content p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, .9);
    line-height: 1.7;
}

.amt-homepage .amt-home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
}

.amt-homepage .amt-home-btn-light {
    border: 1px solid #fff;
    color: var(--amt-navy);
    background: #fff;
    font-weight: 750;
}

.amt-homepage .amt-home-btn-light:hover {
    color: var(--amt-navy);
    background: #f0f5f8;
}

.amt-homepage .amt-home-btn-outline {
    border: 1px solid rgba(255, 255, 255, .85);
    color: #fff;
    background: transparent;
    font-weight: 750;
}

.amt-homepage .amt-home-btn-outline:hover {
    color: var(--amt-navy);
    background: #fff;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .amt-homepage .amt-home-tour-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .amt-homepage .amt-home-why-inner {
        gap: 35px;
        width: calc(100% - 60px);
    }

    .amt-homepage .amt-home-why-image {
        min-height: 410px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .amt-homepage .amt-home-inner {
        width: calc(100% - 36px);
    }

    .amt-homepage .amt-everest-hero {
        min-height: 0;
        height: auto;
        padding: 54px 0 70px;
        background-position: center;
    }

    .amt-homepage .amt-everest-content h1 {
        font-size: clamp(2.25rem, 9vw, 3.25rem);
        letter-spacing: -.8px;
    }

    .amt-homepage .amt-everest-description {
        font-size: .94rem;
    }

    .amt-homepage .amt-tour-search {
    padding: 14px;
	}

	.amt-homepage .amt-tour-search-label {
    margin-bottom: 9px;
	}

    .amt-homepage .amt-tour-search-controls {
        flex-direction: column;
    }

    .amt-homepage .amt-tour-search-button {
        width: 100%;
    }

    .amt-homepage .amt-everest-trust-line {
        font-size: .82rem;
    }

    .amt-homepage .amt-home-featured,
    .amt-homepage .amt-home-intro,
    .amt-homepage .amt-home-why {
        padding: 58px 0;
    }

    .amt-homepage .amt-home-tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .amt-homepage .amt-home-tour-body {
        padding: 14px 13px;
    }

    .amt-homepage .amt-home-tour-title {
        font-size: .94rem;
    }

    .amt-homepage .amt-home-tour-link {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .amt-homepage .amt-home-service-grid {
        grid-template-columns: 1fr;
    }

    .amt-homepage .amt-home-why-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        width: calc(100% - 36px);
    }

    .amt-homepage .amt-home-why-image {
        min-height: 310px;
    }

    .amt-homepage .amt-home-why-content {
        max-width: none;
    }

    .amt-homepage .amt-home-cta {
        padding: 58px 0;
    }
}

/* Narrow mobile screens */
@media (max-width: 420px) {
    .amt-homepage .amt-home-tour-grid {
        grid-template-columns: 1fr;
    }

    .amt-homepage .amt-home-tour-image {
        aspect-ratio: 16 / 9;
    }

    .amt-homepage .amt-home-tour-body {
        padding: 16px;
    }
}

/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .amt-homepage *,
    .amt-homepage *::before,
    .amt-homepage *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (min-width: 768px) {
    .amt-homepage .amt-tour-search {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 1050px;
        gap: 16px;
    }

    .amt-homepage .amt-tour-search-label {
        flex: 0 0 185px;
        margin: 0;
    }

    .amt-homepage .amt-tour-search-controls {
        flex: 1 1 auto;
        min-width: 0;
    }

    .amt-homepage .amt-tour-search-controls input {
        flex: 1 1 auto;
        width: 1%;
        min-width: 0;
    }

    .amt-homepage .amt-tour-search-button {
        flex: 0 0 auto;
        width: auto;
    }
}