/* Homepage styles — ported from the live esimsignal.com homepage (Elementor page 13). */

.home-body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #ffffff;
}

/* ---------- Hero banner (slogan + search over one image) ---------- */
.home-banner {
    position: relative;
    /* Brand-teal fallback shown under the photo while it loads (no white flash). */
    background: #005050;
}
/* The hero photo as a real <img> (see home.ejs) laid behind the content so it
   can be the LCP element and load at high priority. object-fit:cover +
   object-position replicate the old background-size:cover / position:center top. */
.home-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}
/* Teal wash over the photo (was the linear-gradient half of the old
   background-image). */
.home-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 40, 45, 0.20) 0%, rgba(0, 80, 80, 0.10) 55%, rgba(0, 70, 70, 0.16) 100%);
    z-index: 1;
    pointer-events: none;
}
/* Soft fade so the banner clouds melt into the light cards section below */
.home-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 240px;
    background: linear-gradient(180deg, rgba(241, 255, 255, 0) 0%, rgba(241, 255, 255, 0.45) 40%, rgba(241, 255, 255, 0.85) 75%, #F1FFFF 100%);
    pointer-events: none;
    z-index: 1;
}
/* Keep slogan, search box and buttons above the fade */
.home-banner > section {
    position: relative;
    z-index: 2;
}
.home-hero {
    text-align: center;
    padding: 80px 16px 6px;
}
.home-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.home-hero-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #eafffb;
    margin: 12px 0 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
@media (max-width: 767px) {
    .home-hero { padding: 48px 16px 6px; }
    .home-hero-sub { font-size: 15px; }
}

/* ---------- Search section (transparent, sits on the banner) ---------- */
.home-search {
    background: transparent;
    text-align: center;
    padding: 14px 0px 60px;
}
.home-search h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
@media (max-width: 600px) {
    .home-search h2 { font-size: 22px; }
}
.home-search .search-container {
    position: relative;
    width: 400px;
    max-width: 90%;
    margin: 0 auto;
    z-index: 100;
    text-align: left;
}
.home-search .search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: none;
    color: inherit;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.home-search .search-input:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.2);
}
.home-search .results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 101;
    display: none;
    margin-top: 5px;
    border: 1px solid #e9ecef;
    color: #1d2327;
}

/* ---------- Local / Region filter switch ---------- */
.filter-switch-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 13px;
}
.filter-switch {
    display: inline-flex;
    background: white;
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0, 110, 110, 0.15);
}
.filter-switch button {
    all: unset;
    cursor: pointer;
    padding: 10px 42px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #036672;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-align: center;
}
.filter-switch button.active {
    background: linear-gradient(165deg, #008181, #006b6b);
    color: white;
    box-shadow:
        0 6px 14px rgba(0, 110, 110, 0.2),
        0 2px 4px rgba(0, 80, 80, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}
@media (hover: hover) and (pointer: fine) {
.filter-switch button:not(.active):hover {
    color: #005f5f;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}
}
@media (max-width: 600px) {
    .filter-switch button { padding: 8px 25px; font-size: 14px; }
}

/* ---------- Destination cards ---------- */
.cards-section {
    background: linear-gradient(0deg, #FFFFFF 0%, #F1FFFF 100%);;
    padding: 2px 12px 45px;
}
.filter-item {
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    display: block;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .show { margin-bottom: 0px; }
}

.hide {
    opacity: 1;
    transform: translateX(45px);
    pointer-events: none;
    display: none;
}
.cards-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .cards-grid { grid-template-columns: repeat(1, 1fr); gap: 10px; }
}

.simple-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.1rem 1rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
.simple-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
}
.simple-card img {
    width: 36px;
    height: 28px;
    border-radius: 20%;
    object-fit: cover;
    flex-shrink: 0;
}
/* Daily-cached "starting from" price, right-aligned on the country card */
.card-price {
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex-shrink: 0;
}
.card-price small {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    /* Was #93a3b8, only a 2.6:1 ratio on the card's white background — well under
       the 4.5:1 WCAG AA minimum for text this size, and flagged by Lighthouse.
       This slate keeps the muted look but reaches 4.8:1. */
    color: #64748b;
}
.card-price b {
    font-size: 18.5px;
    font-weight: 800;
    color: #008080;
}
@media (max-width: 480px) {
    .card-price small { font-size: 8.5px; }
    .card-price b { font-size: 17px; }
}
/* Region icons are white glyphs — sit them in a teal circle so they show on white cards */
.region-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #008080;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.region-icon img {
    width: 24px;
    height: 24px;
    border-radius: 10px;
    object-fit: contain;
}
.simple-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: #1d2327;
    line-height: 1.25;
    display: flex;
    flex-direction: column;
}
.simple-name small {
    font-weight: 400;
    font-size: 0.78rem;
    color: #7a8794;
}

.home-body .site-footer {
    background: #F1FFFF;
    margin: 0;
    padding: 1.6rem 1rem 5.5rem;
}
