/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    background-color: #f7f7f7;
    color: #111111;
    line-height: 1.6;
}

/* DARK MODE */
body.dark-mode {
    background-color: #050505;
    color: #f5f5f5;
}

/* TYPOGRAPHY */
h1, h2 {
    letter-spacing: 0.04em;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 3.8rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    background-color: #ff385c;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    background-color: #e13252;
}

/* TOP NAV */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark-mode .top-nav {
    background-color: rgba(5, 5, 5, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.top-nav nav a {
    margin-left: 1.25rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.top-nav nav a:hover {
    opacity: 1;
}

/* HERO */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.75)
    );
}

.hero-content {
    position: relative;
    max-width: 640px;
    padding: 0 1.5rem;
}

.hero-content p {
    margin-top: 1rem;
    margin-bottom: 1.8rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* SECTIONS */
.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    background-color: #f7f7f7;
}

body.dark-mode .section {
    background-color: #050505;
}

.section-header {
    margin-bottom: 1.8rem;
}

.section-header p {
    max-width: 520px;
    margin-top: 0.75rem;
    opacity: 0.8;
}

/* FEATURED GALLERY */
.featured-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.featured-main {
    width: 100%;
    height: 520px; /* fixed height so portrait/landscape both fit */
    border-radius: 18px;
    overflow: hidden;
    background-color: #111;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* letterbox — never crops, never shifts layout */
    opacity: 1;
    transition: opacity 0.35s ease;
}

.featured-main-img.fade-swap {
    opacity: 0;
}

@media (max-width: 768px) {
    .featured-main {
        height: 260px;
    }
}

.featured-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.6rem;
}

.featured-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.featured-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 1;
}

.featured-thumb.active {
    border-color: #ff385c;
    opacity: 1;
}

/* DIVIDER */
.divider {
    height: 1px;
    margin: 0 auto;
    max-width: 1120px;
    background: linear-gradient(to right, transparent, #cccccc, transparent);
    opacity: 0.7;
}

body.dark-mode .divider {
    background: linear-gradient(to right, transparent, #444444, transparent);
}

/* CONCIERGE SECTION — removed, now floating bubble */

/* ════════════════════════════════════════════
   CUSTOM CHAT BUBBLE
   ════════════════════════════════════════════ */

#chat-bubble-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

/* Tooltip */
.chat-tooltip {
    background: #111;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    pointer-events: none;
    animation: tooltipFadeIn 0.4s ease 1.2s both;
}
body.dark-mode .chat-tooltip { background: #e8e8e8; color: #111; }

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Bubble toggle button */
.chat-bubble-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff385c;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(255,56,92,0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
    flex-shrink: 0;
}
.chat-bubble-btn:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 14px 36px rgba(255,56,92,0.55);
}

/* Chat window */
.chat-window {
    display: none;
    flex-direction: column;
    width: 360px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.25);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    order: -1;
}
.chat-window.open {
    display: flex;
    animation: chatSlideIn 0.28s ease;
}
@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.dark-mode .chat-window {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.08);
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    background: #ff385c;
    flex-shrink: 0;
}
.chat-header-info { display: flex; flex-direction: column; gap: 0.1rem; }
.chat-header-title  { color: #fff; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.chat-header-subtitle { color: rgba(255,255,255,0.8); font-size: 0.72rem; }
.chat-header-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
    transition: color 0.15s;
}
.chat-header-close:hover { color: #fff; }

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #f7f7f7;
    scroll-behavior: smooth;
}
body.dark-mode .chat-messages { background: #1c1c1e; }

/* Scrollbar */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }
body.dark-mode .chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

/* Message rows */
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot  { justify-content: flex-start; }

/* Bubbles */
.chat-bubble {
    max-width: 82%;
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}
.chat-msg.bot .chat-bubble {
    background: #fff;
    color: #111;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
body.dark-mode .chat-msg.bot .chat-bubble {
    background: #2c2c2e;
    color: #f0f0f0;
    box-shadow: none;
}
.chat-msg.user .chat-bubble {
    background: #ff385c;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1.1rem 0;
    flex-shrink: 0;
    background: #f7f7f7;
}
body.dark-mode .chat-typing { background: #1c1c1e; }
.chat-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #bbb;
    animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* Input row */
.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}
body.dark-mode .chat-input-row {
    background: #2c2c2e;
    border-top-color: rgba(255,255,255,0.08);
}
.chat-input-row textarea {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    font-size: 0.87rem;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.45;
    background: #f7f7f7;
    color: #111;
    transition: border-color 0.2s;
    min-height: 38px;
    max-height: 100px;
}
.chat-input-row textarea::placeholder { color: #aaa; }
.chat-input-row textarea:focus { border-color: #ff385c; background: #fff; }
body.dark-mode .chat-input-row textarea {
    background: #1c1c1e;
    border-color: rgba(255,255,255,0.12);
    color: #f0f0f0;
}
body.dark-mode .chat-input-row textarea::placeholder { color: #666; }
body.dark-mode .chat-input-row textarea:focus { border-color: #ff385c; }

/* Links inside bot bubbles */
.chat-msg.bot .chat-bubble a {
    color: #ff385c;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}
.chat-msg.bot .chat-bubble a:hover {
    color: #e13252;
}
body.dark-mode .chat-msg.bot .chat-bubble a {
    color: #ff6b84;
}

/* Send button */
#chatSend {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #ff385c;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}
#chatSend:hover  { background: #e13252; transform: scale(1.07); }
#chatSend:active { transform: scale(0.96); }
#chatSend:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* Mobile */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 2rem);
        height: 460px;
    }
    .chat-tooltip { display: none; }
}

/* MAP */
.map-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.map-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-open-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ff385c;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.map-open-btn:hover {
    background: #e13252;
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 768px) {
    .map-container { height: 300px; }
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

.footer p {
    margin-bottom: 1.5rem;
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

body.dark-mode .footer {
    background-color: #050505;
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* THEME TOGGLE */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 60;
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.dark-mode .theme-toggle {
    background-color: rgba(10, 10, 10, 0.9);
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.16);
}

/* FLOATING BUTTONS */
.floating-btn {
    position: fixed;
    z-index: 55;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Airbnb button (upper-left) */
.floating-airbnb {
    position: fixed;
    left: 1.5rem;
    top: 6rem; /* below Light/Dark toggle */
    z-index: 55;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background-color: #ff385c;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* AI button (stacked above Airbnb button) */
.floating-ai {
    right: 1.5rem;
    bottom: calc(1.5rem + 48px); /* perfect spacing */
    background-color: #111111;
    color: #ffffff;
}

body.dark-mode .floating-ai {
    background-color: #f5f5f5;
    color: #111111;
}

/* Back to top (bottom-left) */
.back-to-top {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 55;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: none;
    background-color: #111111;
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.dark-mode .back-to-top {
    background-color: #f5f5f5;
    color: #111111;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    /* Prevent any layout shift */
    overflow: hidden;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(0, 0, 0, 0.55), transparent 60%),
        radial-gradient(circle at bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(24px);
}

/* Fixed-size image container — image is always letterboxed inside it */
.lightbox-img-wrap {
    position: relative;
    z-index: 1;
    width: min(90vw, 1100px);
    height: min(85vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.35s ease;
    /* Prevents the image from ever overflowing its container */
    display: block;
}

.lightbox-img.visible {
    opacity: 1;
}

/* LIGHTBOX CLOSE */
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 101;
}

/* LIGHTBOX ARROWS (minimal line arrows) */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    width: 40px;
    height: 40px;
    padding: 0;
}

.lightbox-arrow span {
    display: block;
    width: 18px;
    height: 18px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-prev span {
    transform: rotate(-135deg);
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-next span {
    transform: rotate(45deg);
}

.lightbox-arrow:hover span {
    opacity: 1;
    transform: translateX(1px) rotate(45deg);
}

.lightbox-prev:hover span {
    transform: translateX(-1px) rotate(-135deg);
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.airbnb-label {
    display: inline;
}

.airbnb-icon {
    display: none;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .top-nav nav a {
        margin-left: 0;
        margin-right: 1rem;
        font-size: 0.75rem;
    }

    .hero {
        min-height: 80vh;
    }

    /* Only AI + Back-to-top stay bottom-fixed */
    .floating-ai,
    .back-to-top {
        bottom: 1rem;
    }

    .floating-ai {
        bottom: 3.8rem;
    }

/* MOBILE — make the floating button a small circle */
.floating-airbnb {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    top: 5rem;
    left: 1rem;
    bottom: auto;
}


    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }

        /* MOBILE FIX — shrink hero CTA button */
    .btn-primary {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.75rem !important;
    border-radius: 999px !important;
    }

/* MOBILE — hide text, show icon */
.airbnb-label {
    display: none;
}

.airbnb-icon {
    display: inline;
    font-size: 1.2rem;
}


}

