/* ============================================
   Despite Loveday Apartment Limited
   Luxury Navy + Gold Theme
   ============================================ */

:root {
    --navy: #0A1F3D;
    --navy-dark: #061525;
    --navy-light: #132F5A;
    --gold: #D4AF37;
    --gold-light: #E8C547;
    --gold-dark: #B8941F;
    --cream: #F8F5F0;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-600: #666666;
    --gray-800: #333333;
    --text: #1A1A1A;
    --shadow: 0 10px 40px rgba(10, 31, 61, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 31, 61, 0.18);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
}

.top-bar a:hover {
    color: var(--gold);
}

.top-bar i {
    margin-right: 6px;
    color: var(--gold);
}

/* ========== HEADER ========== */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.logo-sub {
    font-size: 11px;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--gray-800);
    position: relative;
    padding: 6px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--navy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: var(--navy-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,21,37,0.85) 0%, rgba(10,31,61,0.7) 50%, rgba(6,21,37,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 20px;
    color: var(--white);
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

.stat-item span {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* ========== SECTIONS ========== */
section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header .eyebrow {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--navy);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* ========== ROOMS ========== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.room-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.room-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-card-image img {
    transform: scale(1.06);
}

.room-price {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

.room-price span {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.room-card-body {
    padding: 24px;
}

.room-card-body h3 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.room-card-body p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.room-amenities span {
    background: var(--cream);
    color: var(--navy);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 500;
}

/* ========== AMENITIES ========== */
.amenities-section {
    background: var(--cream);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.amenity-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.amenity-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.amenity-card h4 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.amenity-card p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item:nth-child(1) img {
    height: 100%;
}

/* ========== BOOKING FORM ========== */
.booking-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.booking-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1000px;
    margin: 0 auto;
}

.booking-info {
    background: var(--navy);
    color: var(--white);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-info h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--white);
}

.booking-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.booking-features {
    list-style: none;
}

.booking-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
}

.booking-features i {
    color: var(--gold);
    width: 20px;
}

.booking-form-wrap {
    padding: 48px 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ========== CTA ========== */
.cta-section {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== FOOTER ========== */
.main-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.75);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 48px;
    background: var(--white);
    border-radius: 8px;
    padding: 4px;
}

.footer-logo strong {
    display: block;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 16px;
}

.footer-logo span {
    font-size: 12px;
    color: var(--gold);
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-col ul a:hover {
    color: var(--gold);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.contact-info i {
    color: var(--gold);
    margin-top: 3px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.admin-link a {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.admin-link a:hover {
    color: var(--gold);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin: 0 auto;
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .booking-card {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 520px;
        padding: 80px 0;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}
