@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent-gold: #c5a059;
    --accent-gold-hover: #b08d46;
    --accent-emerald: #059669;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Container & Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.header-glass {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #c5a059 0%, #d4af37 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #b08d46 0%, #c5a059 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
}

.btn-dark {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    text-decoration: none;
}
.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Villa Card */
.villa-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.villa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.villa-card .image-wrapper {
    position: relative;
    padding-top: 66.66%;
    background: #e2e8f0;
    overflow: hidden;
}
.villa-card .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.villa-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #e2b755;
    border: 1px solid rgba(226, 183, 85, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-fav:hover, .btn-fav.active {
    color: #e11d48;
    background: #ffffff;
    transform: scale(1.1);
}

/* Forms & Inputs */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* Long-form page content: Tailwind CDN does not include the Typography plugin. */
.rich-content { color: #334155; font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.rich-content p { margin: 0 0 1.1rem; }
.rich-content h2, .rich-content h3, .rich-content h4 { color: #0f172a; font-family: Georgia, serif; font-weight: 700; line-height: 1.3; margin: 1.75rem 0 .75rem; }
.rich-content h2 { font-size: 1.55rem; } .rich-content h3 { font-size: 1.3rem; } .rich-content h4 { font-size: 1.1rem; }
.rich-content ul, .rich-content ol { margin: .75rem 0 1.25rem 1.5rem; }
.rich-content ul { list-style: disc; } .rich-content ol { list-style: decimal; }
.rich-content li { margin: .35rem 0; }
.rich-content a { color: #9a6f18; text-decoration: underline; text-underline-offset: 3px; }
.rich-content blockquote { border-left: 4px solid #c5a059; background: #f8fafc; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.rich-content img { max-width: 100%; height: auto; border-radius: 12px; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.rich-content th, .rich-content td { border: 1px solid #cbd5e1; padding: .7rem; text-align: left; }

@media (max-width: 640px) { .rich-content { font-size: .96rem; line-height: 1.75; } }

/* Chatbot Floating Widget */
.chatbot-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #c5a059;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    border: 2px solid #c5a059;
}
.chatbot-bubble:hover {
    transform: scale(1.08);
}

.chatbot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
}
.chatbot-window.open {
    display: flex;
}

/* Sticky Booking Box */
.sticky-booking-card {
    position: sticky;
    top: 96px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

/* Responsive Grid Helper */
.grid-responsive-villas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .chatbot-window {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 84px;
    }
}
