/* --- Reset & base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    background: #f8fafc;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Site header --- */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0 0 1.5rem;
}
.logo { width: 200px; height: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: block; }
.menu-btn {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    padding: 1.5rem;
    display: inline-block;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(56,189,248,0.1) 0%, transparent 40%, rgba(3,105,161,0.35) 100%);
    z-index: 2;
}

/* --- Animated hero: gentle background drift + wave animation --- */
/* Removed — didn't work over the existing photo. Scene-level animation
   needs the beach as an SVG illustration, not a photo. */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    width: 100%;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.tagline {
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Search form --- */
.search-form {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    max-width: 720px;
    margin: 0 auto;
}
.search-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: #1e293b;
}
.search-form input::placeholder { color: #94a3b8; }
.search-form button {
    background: #FCD34D;
    color: #1e3a8a;
    font-weight: 700;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-form button:hover { background: #FBBF24; }
.search-form button .icon { font-size: 1.1rem; }

.examples {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* --- Booking sites --- */
.booking-sites { margin-top: 2.5rem; }
.booking-sites-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.booking-sites-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.site-badge {
    background: rgba(255,255,255,0.97);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 0.95rem;
}
.site-badge.booking { color: #003580; }
.site-badge.airbnb  { color: #FF5A5F; }
.site-badge.vrbo    { color: #245ABC; font-style: italic; }
.site-badge.expedia { color: #FFC72C; background: #00355F; }
.site-badge.hotels  { color: #D32F2F; }

/* --- Inspiration section --- */
.inspiration {
    background: #f1f5f9;
    padding: 5rem 0;
}
.inspiration--light { background: #fff; }
.section-heading { text-align: center; margin-bottom: 3rem; }
.eyebrow {
    color: #0284c7;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.sub { color: #64748b; }

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
}
.search-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s;
}
.search-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(56,189,248,0.15);
    transform: translateY(-1px);
}
.search-card-body { flex: 1; min-width: 0; }
.search-card-query {
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.35;
}
.search-card:hover .search-card-query { color: #0284c7; }
.search-card-meta { color: #94a3b8; font-size: 0.75rem; }
.search-card-arrow {
    color: #cbd5e1;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.search-card:hover .search-card-arrow {
    color: #0284c7;
    transform: translateX(3px);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    color: #64748b;
}

/* --- Ideas / results page --- */
.ideas-hero {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: #fff;
    padding: 5rem 0 3.5rem;
    text-align: center;
}
.ideas-hero .eyebrow { color: #FCD34D; }
.ideas-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.ideas-sub { color: rgba(255,255,255,0.85); }

.destinations { padding: 4rem 0; background: #fff; }
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.destination-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    transition: box-shadow 0.2s;
}
.destination-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.destination-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.destination-head h2 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}
.destination-country {
    color: #64748b;
    font-size: 0.85rem;
}
.destination-star {
    background: #FEF3C7;
    color: #D97706;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
}
.destination-tagline {
    color: #334155;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.destination-why {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.destination-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.tag {
    background: #E0F2FE;
    color: #075985;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.destination-price {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.destination-booking {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}
.booking-label {
    color: #94a3b8;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.booking-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
.btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-booking { background: #003580; }
.btn-airbnb  { background: #FF5A5F; }
.btn-vrbo    { background: #245ABC; }
.btn-expedia { background: #00355F; }

.new-search-cta {
    text-align: center;
    background: #f8fafc;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    margin-top: 2rem;
}
.new-search-cta p {
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 500;
}
.search-form--inline { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.error-box {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 4rem auto;
    max-width: 600px;
}
.error-box h1 { color: #dc2626; margin-bottom: 1rem; }
.error-box a { color: #0284c7; }

/* --- Footer --- */
.site-footer {
    background: #0c4a6e;
    color: rgba(255,255,255,0.85);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}
.site-footer-inner { max-width: 900px; margin: 0 auto; }
.site-footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.site-footer-nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.site-footer-nav a:hover { color: #FCD34D; text-decoration: none; }
.site-footer-brand { margin-bottom: 0.5rem; color: #fff; }
.site-footer-small {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    max-width: 640px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}
.site-footer-copy {
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
}

/* --- Static content pages (terms / privacy / ai-disclaimer / about) --- */
.page-hero {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: #fff;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 0.5rem;
}
.page-hero p { color: rgba(255,255,255,0.9); }
.content-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    background: #fff;
}
.content-page h2 {
    font-size: 1.4rem;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}
.content-page h2:first-child { margin-top: 0; }
.content-page h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}
.content-page p,
.content-page ul,
.content-page ol {
    margin-bottom: 1rem;
    color: #334155;
    line-height: 1.7;
}
.content-page ul, .content-page ol { padding-left: 1.5rem; }
.content-page li { margin-bottom: 0.35rem; }
.content-page a { color: #0284c7; text-decoration: underline; }
.content-page a:hover { color: #0369a1; }
.content-page .updated {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* --- Browse / category pages --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}
.category-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
    text-align: left;
}
.category-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 8px 20px rgba(56,189,248,0.15);
    transform: translateY(-2px);
    text-decoration: none;
}
.category-card h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}
.category-card p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.category-card .count {
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 600;
}
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0;
}
.category-tag {
    background: #FEF3C7;
    color: #92400e;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s;
}
.category-tag:hover { background: #FDE68A; text-decoration: none; }

/* --- Responsive --- */
@media (max-width: 640px) {
    /* Logo pinned to top with a small left inset for breathing room */
    .site-header { padding: 0 0 0 0.5rem; }
    .logo { width: 105px; }
    .menu-btn { padding: 1rem 1.25rem; }

    /* Give hero content room to breathe below the logo */
    .hero        { padding: 8rem 1rem 3rem; }
    .ideas-hero  { padding: 7rem 0 2.5rem; }
    .page-hero   { padding: 7rem 1rem 2.5rem; }

    /* Tighter container padding so cards get more width */
    .container { padding: 0 1rem; }

    /* Search form tweaks */
    .search-form { padding: 0.4rem; }
    .search-form input { padding: 0.85rem 1rem; font-size: 0.95rem; }
    .search-form button { padding: 0.85rem 1rem; }
    .search-form button .label { display: none; }

    /* One-column grids on mobile — this fixes the horizontal overflow */
    .destination-grid  { grid-template-columns: 1fr; gap: 1rem; }
    .destination-card  { padding: 1.25rem; }
    .booking-buttons   { grid-template-columns: 1fr; }
    .search-grid       { grid-template-columns: 1fr; }
    .categories-grid   { grid-template-columns: 1fr; }
}

/* --- Ad slots --- */
.ad-slot {
    text-align: center;
    padding: 1.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* Belt-and-braces: prevent any single wide element from causing sideways scroll on any screen */
html, body { overflow-x: hidden; }

/* --- Cookie consent banner --- */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10000;
    display: none;
    transform: translateY(150%);
    opacity: 0;
    border: 1px solid rgba(3, 105, 161, 0.08);
}
.cookie-banner.show {
    display: block;
    animation: cookie-slide-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.cookie-banner.hide {
    animation: cookie-slide-down 0.4s ease-in forwards;
}
@keyframes cookie-slide-up {
    0%   { transform: translateY(160%); opacity: 0; }
    60%  { opacity: 1; }
    100% { transform: translateY(0);    opacity: 1; }
}
@keyframes cookie-slide-down {
    0%   { transform: translateY(0);    opacity: 1; }
    100% { transform: translateY(160%); opacity: 0; }
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cookie-banner-icon {
    font-size: 2.5rem;
    display: inline-block;
    flex-shrink: 0;
    animation: cookie-bob 2.6s ease-in-out infinite;
    transform-origin: center bottom;
    line-height: 1;
}
@keyframes cookie-bob {
    0%, 100% { transform: translateY(0)    rotate(-7deg); }
    50%      { transform: translateY(-6px) rotate(7deg); }
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.cookie-banner-text p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}
.cookie-banner-text a {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 500;
}
.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.6rem 1.15rem;
    border-radius: 0.55rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.cookie-btn:active { transform: translateY(0); }
.cookie-btn-accept {
    background: #FCD34D;
    color: #1e3a8a;
}
.cookie-btn-accept:hover { background: #FBBF24; }
.cookie-btn-decline {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}
.cookie-btn-decline:hover { background: #e2e8f0; }

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 1rem;
    }
    .cookie-banner-inner { flex-wrap: wrap; }
    .cookie-banner-text  { flex-basis: calc(100% - 60px); }
    .cookie-banner-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    .cookie-btn { flex: 1; }
    .cookie-banner-icon { font-size: 2rem; }
}

/* --- Search loader overlay --- */
.search-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(3,105,161,0.96) 0%, rgba(14,165,233,0.96) 100%);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}
.search-loader.active {
    display: flex;
    opacity: 1;
    animation: loader-fade-in 0.3s ease;
}
@keyframes loader-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.search-loader-inner {
    text-align: center;
    padding: 2rem;
    color: #fff;
    max-width: 500px;
}
.search-loader-orbit {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
}
@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.search-loader-sun {
    position: absolute;
    inset: 0;
    border: 3px dashed rgba(252, 211, 77, 0.55);
    border-radius: 50%;
    animation: orbit-spin 6s linear infinite;
}
.search-loader-plane {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 3rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
    animation: plane-bob 2.4s ease-in-out infinite;
}
@keyframes plane-bob {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -58%) scale(1.05); }
}
.search-loader-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.search-loader-hint {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.5rem;
    min-height: 1.4em;
    transition: opacity 0.4s;
}
.search-loader-dots {
    display: inline-flex;
    gap: 0.5rem;
}
.search-loader-dots span {
    width: 10px;
    height: 10px;
    background: #FCD34D;
    border-radius: 50%;
    animation: loader-dot 1.2s ease-in-out infinite;
}
.search-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.search-loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loader-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40%           { transform: scale(1);   opacity: 1; }
}
