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

/* ✅ GLOBAL RESET (MUST IMPLEMENT) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
    width: 100%; 
    overflow-x: hidden; 
    font-family: 'Inter', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ✅ TEXT SAFETY (FIX OVERFLOW TEXT) */
h1, h2, h3, p, a, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ✅ UNIVERSAL CONTAINER (PREVENTS CUTTING) */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
}

/* ✅ SECTION RULE (STRICT) */
section {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 80px 0;
}

/* ✅ IMAGE SAFETY (FIX CUT IMAGES) */
img {
    width: 100%;
    height: auto;
    display: block;
}

/* 🎨 DESIGN SYSTEM — CLEAN GLASS */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* 🧱 GRID SYSTEM (ANTI-BREAK VERSION) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.col {
    padding: 12px;
    width: 100%; /* Default to 100% for mobile */
}

/* Desktop: 3 columns */
@media (min-width: 1025px) {
    .col-lg-4 { width: 33.333%; }
    .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.666%; }
    .col-lg-12 { width: 100%; }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .col-md-6 { width: 50%; }
    .col-md-12 { width: 100%; }
    .col-lg-4, .col-lg-6, .col-lg-8 { width: 50%; } /* Fallback for tablet */
}

/* Mobile is implicitly 100% due to base .col rule */

/* 🧭 HEADER (NO BREAK NAV) */
.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #c99c33;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 24px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #c99c33;
}

/* MOBILE FIX: Header Dropdown */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 16px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-top: 1px solid #eee;
    }
}

/* 🌄 HERO SECTION (SAFE VERSION) */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.9)), url('images/photo-1540541338287-41700207dee6.png') center/cover no-repeat;
}

.hero h1 {
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #1a1a1a;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #c99c33;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #a88129;
}

.btn-outline {
    background: transparent;
    border: 2px solid #c99c33;
    color: #c99c33;
}

.btn-outline:hover {
    background: #c99c33;
    color: #fff;
}

/* 🏝 RESORT CARDS (MAIN FIX AREA) */
.card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-text {
    flex-grow: 1;
    margin-bottom: 20px;
}

.card .btn {
    margin-top: auto;
    width: 100%;
}

/* 📊 PRICING (FIX TABLE BREAK) */
.pricing-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-card {
    width: 100%;
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.pricing-card h3 {
    color: #c99c33;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* 📞 FORM FIX (IMPORTANT) */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    background: #fff;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: #c99c33;
}

/* UTILITIES & ANIMATION */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { max-width: 600px; margin: 0 auto 3rem; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer h4 {
    color: #c99c33;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.footer p, .footer a {
    color: #aaa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
}

/* Detail Page Specific */
.detail-hero {
    padding: 60px 0;
    background: none;
}
.detail-hero img {
    border-radius: 16px;
    margin-bottom: 30px;
}