/* ====================================
   M. COLLECTION — Unified Design System
   ==================================== */

/* ========== BASE STYLES ========== */
body {
    background-color: #faf8f5;
    font-family: 'Inter', sans-serif;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========== TYPOGRAPHY HIERARCHY ========== */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
}

@media (min-width: 768px) {
    h2 {
        font-size: 3rem;
    }
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    h3 {
        font-size: 1.5rem;
    }
}

p, span, a, button {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.font-bold {
    font-weight: 600;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* ========== NAVBAR COMPONENT ========== */
.header-floating {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: calc(100% - 40px);
    border-radius: 100px;
    background: rgba(26, 43, 76, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(189, 83, 59, 0.3);
}

@media (min-width: 1024px) {
    .header-floating {
        width: auto;
        max-width: calc(100% - 40px);
    }
}

.header-scrolled {
    top: 0;
    width: 100%;
    left: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(189, 83, 59, 0.15);
    border-bottom: 1px solid rgba(189, 83, 59, 0.2);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.nav-item {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #cba052;
}

/* ========== MOBILE MENU BUTTON ========== */
#mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    #mobile-menu-btn {
        display: none !important;
    }
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    display: none !important;
    flex-direction: column;
}

#mobile-menu.flex {
    display: flex !important;
}

#mobile-menu.hidden {
    display: none !important;
}

/* ========== HERO SECTION ========== */
.hero-section {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 5rem;
    }
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
}

.hero-text-shadow {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

/* ========== BUTTON COMPONENTS ========== */
.btn-primary {
    background: #cba052;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #bd533b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #1a2b4c;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #bd533b;
    color: white;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-tertiary:hover {
    background: white;
    color: #1a2b4c;
}

/* ========== CARD COMPONENTS ========== */
.card-white {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(245, 240, 230, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-white:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-glass-dark {
    background: rgba(26, 43, 76, 0.25);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(189, 83, 59, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card-glass-dark:hover {
    background: rgba(26, 43, 76, 0.35);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-box-terracotta {
    background: rgba(189, 83, 59, 0.1);
}

.icon-box-terracotta:hover {
    background: rgba(189, 83, 59, 0.2);
}

.icon-box-gold {
    background: rgba(203, 160, 82, 0.1);
}

.icon-box-gold:hover {
    background: rgba(203, 160, 82, 0.2);
}

.icon-box-majorelle {
    background: rgba(26, 43, 76, 0.1);
}

.icon-box-majorelle:hover {
    background: rgba(26, 43, 76, 0.2);
}

/* ========== FORM FIELDS ========== */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 240, 230, 0.8);
    background: white;
    color: #1a2b4c;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #cba052;
    box-shadow: 0 0 0 3px rgba(203, 160, 82, 0.1);
}

input::placeholder, select::placeholder, textarea::placeholder {
    color: rgba(26, 43, 76, 0.6);
}

/* ========== SECTION LAYOUT ========== */
.section-padding {
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 5rem 5rem;
    }
}

.max-content {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* ========== REVEAL ANIMATION ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HERO SLIDER ========== */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

.slider-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.scale-110 {
    transform: scale(1.1);
}

/* ========== BOOKING ENGINE ========== */
.booking-card {
    background: rgba(26, 43, 76, 0.25);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(189, 83, 59, 0.2);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 40;
}

.booking-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(189, 83, 59, 0.2);
    color: white;
}

.booking-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.booking-input:focus {
    border-color: #cba052;
    background: rgba(255, 255, 255, 0.15);
}

/* ========== PROPERTY CARD ========== */
.property-card {
    position: relative;
    overflow: hidden;
}

.property-card img {
    transition: transform 0.8s ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.property-card:hover img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 10;
}

.property-badge-terracotta {
    background: #bd533b;
}

.property-badge-gold {
    background: #cba052;
}

.property-badge-majorelle {
    background: #1a2b4c;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f0e6;
}

::-webkit-scrollbar-thumb {
    background: #bd533b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a2b4c;
}

/* ========== GLASSMORPHISM UTILITIES ========== */
.glass {
    background: rgba(250, 248, 245, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(189, 83, 59, 0.15);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(189, 83, 59, 0.2);
}

/* ========== DETAILS/ACCORDION ========== */
details {
    transition: all 0.3s ease;
}

details[open] summary {
    background-color: #f5f0e6 !important;
}

details summary {
    cursor: pointer;
    user-select: none;
}

/* ========== INTERSECTION OBSERVER ========== */
.observer-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.observer-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== UTILITY CLASSES ========== */
.text-gradient {
    background: linear-gradient(to right, #cba052, #bd533b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.group:hover {
    /* Enables group hover effects on parent */
}

.group-open::-webkit-details-marker {
    color: transparent;
}

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }
}

/* ========== TABLE STYLING ========== */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #1a2b4c;
    color: white;
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid rgba(189, 83, 59, 0.2);
}

tbody td {
    padding: 1rem;
    border: 1px solid rgba(245, 240, 230, 0.5);
}

tbody tr:hover {
    background: #f5f0e6;
}

/* ========== LIST STYLING ========== */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 0.5rem;
}

.list-disc li {
    margin-left: 1.5rem;
    position: relative;
}

.list-disc li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #bd533b;
    font-weight: bold;
}

/* ========== TYPOGRAPHY STANDARDS ========== */
.h1-page {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .h1-page {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .h1-page {
        font-size: 4.5rem;
    }
}

.h2-page {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .h2-page {
        font-size: 2.25rem;
    }
}

.h3-page {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .h3-page {
        font-size: 1.5rem;
    }
}

.text-body {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
}

.text-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
