body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Utility to hide elements (we don't rely on Bootstrap .d-none) */
.sd-hidden {
    display: none !important;
}

/* Product nav (for other pages if needed) */
.sd-product-link {
    padding: 0.75rem 0.4rem;
    font-size: 0.85rem;
    color: #4a4a4a;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.sd-product-link.active {
    color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 600;
}

.sd-product-link.disabled {
    opacity: .45;
    cursor: default;
}

/* Reusable hover card */
.sd-hover-lift {
    transition: all 0.2s ease;
}

.sd-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
}

/* Footer */
.sd-footer {
    font-size: 0.8rem;
}

/* Small pill links */
.sd-pill-link {
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    color: #343a40;
    text-decoration: none;
    background-color: #f8f9fa;
    font-size: 0.8rem;
}

.sd-pill-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

/* Horizontal scroll helpers */
.sd-horizontal-scroll {
    scrollbar-width: thin;
}

.sd-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.sd-horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .15);
    border-radius: 10px;
}

.sd-card-horizontal {
    color: inherit;
}

.sd-card-thumb {
    width: 100%;
    padding-top: 65%;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
}

/* -------------------------------------------------------
 * Mobile hamburger icon (for slide-in menu)
 * ----------------------------------------------------- */
.sd-menu-toggle {
    border: 0;
    color: #0d6efd;
    background: transparent;
    line-height: 1;
}

.sd-menu-icon,
.sd-menu-icon::before,
.sd-menu-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background-color: #0d6efd;
    position: relative;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.sd-menu-icon::before,
.sd-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.sd-menu-icon::before {
    top: -6px;
}

.sd-menu-icon::after {
    top: 6px;
}

/* Slide-in mobile menu */
.sd-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1050;
    pointer-events: none;
}

.sd-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sd-mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    max-width: 80%;
    background: #0f172a;
    color: #fff;
    padding: 1.25rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
}

.sd-mobile-menu.is-open {
    pointer-events: auto;
}

.sd-mobile-menu.is-open .sd-mobile-menu-backdrop {
    opacity: 1;
}

.sd-mobile-menu.is-open .sd-mobile-menu-panel {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .sd-mobile-menu {
        display: none;
    }
}

/* ===========================
   HERO SECTION
   =========================== */

.sd-hero {
    position: relative;
    min-height: 80vh;
    color: #fff;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dark overlay so white text pops */
.sd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.55),
        rgba(15, 23, 42, 0.85)
    );
}

.sd-hero-inner {
    position: relative;
    z-index: 1;
    padding: 1.25rem 0 4rem;
}

/* ===========================
   TOP NAV OVER HERO
   =========================== */

.sd-topbar {
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.sd-logo {
    height: 40px;
}

.sd-logo-link {
    text-decoration: none;
}

.sd-main-nav,
.sd-utility-nav {
    font-size: 0.85rem;
}

.sd-nav-link {
    color: #f9fafb;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.sd-nav-link span {
    vertical-align: middle;
}

.sd-nav-link:hover,
.sd-nav-link:focus {
    color: #ffffff;
    opacity: 0.9;
    text-decoration: none;
}

.sd-nav-link.active {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 0.35rem;
}

/* ===========================
   HERO HEADING
   =========================== */

.sd-hero-heading {
    text-align: center;
    margin-top: 3.5rem;
}

.sd-hero-heading h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sd-hero-heading p {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ===========================
   SEARCH CARD + FLOATING MENU
   (HOME PAGE)
   =========================== */

.sd-search-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.sd-search-card {
    position: relative;
    max-width: 1100px;
    width: 100%;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 3.5rem 3rem 2.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
}

/* Floating menu wrapper – tabs are half in / half out */
.sd-search-tabs-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.sd-search-tabs {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 999px;
    background: #f8fafc;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.sd-search-tab {
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    background: transparent;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.sd-search-tab .sd-tab-icon {
    font-size: 1rem;
}

.sd-search-tab.active {
    background: #1856ff;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.7);
}

.sd-search-tab:not(.active):hover {
    background: rgba(148, 163, 184, 0.18);
}

/* Options strip (Up to 4 rooms / Group deals) */

.sd-search-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    font-size: 0.82rem;
}

.sd-search-options-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sd-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    color: #374151;
    background: #f9fafb;
    font-size: 0.8rem;
}

.sd-radio-pill input {
    display: none;
}

.sd-radio-pill-active,
.sd-radio-pill:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.sd-badge-new {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
}

.sd-search-options-text {
    text-align: right;
    font-size: 0.8rem;
    color: #4b5563;
}

.sd-link-inline {
    color: #2563eb;
    text-decoration: none;
}

.sd-link-inline:hover {
    text-decoration: underline;
}

/* Form fields layout */

.sd-search-form-row {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 1.3fr 1.3fr;
    gap: 1.25rem;
    align-items: flex-end;
}

.sd-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.sd-field-city {
    position: relative;
}

.sd-field-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.sd-field-input {
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    box-shadow: none;
    width: 100%;
}

.sd-field-input::placeholder {
    color: #94a3b8;
}

.sd-field-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    outline: none;
}

.sd-field-display {
    text-align: left;
    background-color: #ffffff;
    cursor: pointer;
}

/* Search button row */

.sd-search-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sd-search-trending {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

/* Search button */

.sd-btn-search {
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 0;
    padding: 0.9rem 2.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.sd-btn-search:hover {
    background: linear-gradient(135deg, #1d4ed8, #1d4ed8);
}

/* ===========================
   DROPDOWNS (City / Guests / Price)
   =========================== */

.sd-city-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.3);
    padding: 0.9rem 1rem;
    max-height: 320px;
    overflow-y: auto;
    z-index: 20;
}

.sd-city-section + .sd-city-section {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.sd-city-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.sd-city-item {
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.4rem;
    border-radius: 0.6rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sd-city-item:hover {
    background: #f3f4f6;
}

.sd-city-name {
    font-weight: 500;
    color: #111827;
}

.sd-city-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Generic dropdown for guests & price */

.sd-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    min-width: 260px;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.3);
    padding: 0.9rem 1rem;
    z-index: 20;
}

.sd-dropdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sd-dropdown-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
}

.sd-dropdown-help {
    font-size: 0.75rem;
    color: #6b7280;
}

.sd-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sd-counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.sd-counter-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.sd-counter-value {
    min-width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.sd-dropdown-footer {
    margin-top: 0.5rem;
    text-align: right;
}

.sd-btn-apply {
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    border: 0;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.sd-btn-apply:hover {
    background: #1d4ed8;
}

.sd-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.45rem 0.5rem;
    border-radius: 0.6rem;
    border: 0;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.sd-dropdown-item:hover {
    background: #f3f4f6;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.sd-about {
    background: #f3f4f6;
    padding: 3.5rem 0;
}

.sd-about-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.sd-about-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
}

/* ===========================
   RESPONSIVE TWEAKS
   =========================== */

@media (max-width: 991.98px) {
    .sd-hero-heading {
        margin-top: 3rem;
    }

    .sd-hero-heading h1 {
        font-size: 2.1rem;
    }

    .sd-search-card {
        border-radius: 1.5rem;
        padding: 3.25rem 1.75rem 2.25rem;
    }

    .sd-search-form-row {
        grid-template-columns: 1fr 1fr;
    }

    .sd-search-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .sd-search-options-text {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .sd-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .sd-search-tabs-wrapper {
        transform: translate(-50%, -55%);
    }

    .sd-search-card {
        border-radius: 1.5rem;
        padding: 3.25rem 1.35rem 2rem;
    }

    .sd-search-form-row {
        grid-template-columns: 1fr;
    }

    .sd-search-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   INNER PAGES: HEADER + FLAT SEARCH STRIP
   ======================================= */

/* Sticky white header for inner pages (listing, etc.) */
.sd-page-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* dark text version of sd-nav-link for white header */
.sd-nav-link-dark {
    color: #111827;
}

.sd-nav-link-dark:hover,
.sd-nav-link-dark:focus {
    color: #0d6efd;
    opacity: 1;
}

/* Grey strip behind the flat bar */
.sd-results-search-strip {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0 1rem;
}

/* reset form margin */
.sd-results-search-form {
    margin: 0;
}

/* Flat white search bar (like MMT) */
.sd-results-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    border: 1px solid #e5e7eb;
}

/* fields inside the bar */
.sd-results-field {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sd-results-field:last-of-type {
    border-right: none;
}

.sd-results-field-city {
    flex: 1.4;
}

.sd-results-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.sd-results-input {
    border: 0;
    padding: 0;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    background: transparent;
}

.sd-results-input::placeholder {
    color: #9ca3af;
}

/* big blue SEARCH button on right */
.sd-results-field-button {
    flex: 0 0 auto;
}

.sd-results-search-btn {
    border: 0;
    padding: 0.7rem 2.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    cursor: pointer;
    border-radius: 0.75rem;
}

/* Responsive tweaks for the bar */
@media (max-width: 991.98px) {
    .sd-results-bar {
        flex-direction: column;
    }

    .sd-results-field {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .sd-results-field:last-of-type {
        border-bottom: none;
    }

    .sd-results-search-btn {
        width: 100%;
    }
}



/* =========================================
   HOME: RANDOM DESTINATION STRIP
   ======================================= */

.sd-stay-section {
    background: #f3f4f6;
    padding: 2.5rem 0;
}

.sd-stay-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem 1.25rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.sd-stay-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin: 0 -0.25rem;
}

.sd-stay-list::-webkit-scrollbar {
    height: 6px;
}

.sd-stay-list::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.sd-stay-item {
    flex: 0 0 230px;
    max-width: 230px;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    color: inherit;
}

.sd-stay-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    text-decoration: none;
}

.sd-stay-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #e5e7eb;
}

.sd-stay-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-stay-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.sd-stay-body {
    padding: 0.7rem 0.75rem 0.8rem;
}

.sd-stay-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    color: #111827;
}

.sd-stay-location {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.sd-stay-price {
    display: flex;
    flex-direction: column;
}

.sd-stay-price-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.sd-stay-price-unit {
    font-size: 0.7rem;
    color: #6b7280;
}

.sd-stay-rating-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .sd-stay-card {
        padding-inline: 1.1rem;
    }

    .sd-stay-item {
        flex-basis: 200px;
        max-width: 200px;
    }
}
