/* ============================================
   Sunflower Apartment - Mediterranean Theme
   ============================================ */

:root {
    /* Primary palette - Warm Mediterranean */
    --color-sunflower: #F2A900;
    --color-sunflower-light: #FFC940;
    --color-sunflower-dark: #D4920A;
    --color-terracotta: #C75B39;
    --color-terracotta-light: #E07A5A;
    --color-terracotta-dark: #A04428;
    --color-sand: #F5E6D0;
    --color-sand-light: #FDF8F2;
    --color-white: #FFFFFF;
    --color-cream: #FFFDF7;

    /* Accent colors */
    --color-olive: #6B7F3A;
    --color-sea: #2E86AB;
    --color-sea-light: #A3D5E8;

    /* Neutrals */
    --color-charcoal: #2D2D2D;
    --color-gray-dark: #4A4A4A;
    --color-gray: #6E6E6E;
    --color-gray-light: #B8B8B8;
    --color-gray-lighter: #E8E8E8;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;
    --card-radius: 12px;
    --btn-radius: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Base Styles
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-charcoal);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--color-gray-dark);
    font-weight: 300;
}

a {
    color: var(--color-terracotta);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-terracotta-dark);
}

/* ============================================
   Navigation
   ============================================ */

.navbar-sunflower {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-sunflower .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-sunflower-dark) !important;
}

.navbar-sunflower .navbar-brand i {
    color: var(--color-sunflower);
    margin-right: 0.5rem;
}

.navbar-sunflower .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-gray-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--btn-radius);
    transition: all 0.3s ease;
}

.navbar-sunflower .nav-link:hover,
.navbar-sunflower .nav-link.active {
    color: var(--color-terracotta) !important;
    background: var(--color-sand);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-sand) 50%, var(--color-sunflower-light) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(242, 169, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-cream), transparent);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--color-sunflower-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image-placeholder {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-sunflower-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder i {
    font-size: 4rem;
    color: var(--color-sunflower);
    opacity: 0.5;
}

/* ============================================
   Buttons
   ============================================ */

.btn-sunflower {
    background: linear-gradient(135deg, var(--color-sunflower), var(--color-sunflower-dark));
    color: var(--color-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--btn-radius);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.3);
}

.btn-sunflower:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 169, 0, 0.4);
    color: var(--color-white);
}

.btn-terracotta {
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
    color: var(--color-white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--btn-radius);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 91, 57, 0.3);
}

.btn-terracotta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 91, 57, 0.4);
    color: var(--color-white);
}

.btn-outline-warm {
    border: 2px solid var(--color-sunflower);
    color: var(--color-sunflower-dark);
    background: transparent;
    padding: 0.7rem 1.8rem;
    border-radius: var(--btn-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-warm:hover {
    background: var(--color-sunflower);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================================
   Cards & Sections
   ============================================ */

.section-page {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h1 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-sunflower), var(--color-terracotta));
    border-radius: 2px;
    margin: 1rem auto;
}

.card-highlight {
    background: var(--color-white);
    border: none;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.card-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-highlight .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.card-icon-sunflower {
    background: rgba(242, 169, 0, 0.12);
    color: var(--color-sunflower-dark);
}

.card-icon-terracotta {
    background: rgba(199, 91, 57, 0.12);
    color: var(--color-terracotta);
}

.card-icon-sea {
    background: rgba(46, 134, 171, 0.12);
    color: var(--color-sea);
}

.card-icon-olive {
    background: rgba(107, 127, 58, 0.12);
    color: var(--color-olive);
}

/* ============================================
   Feature List
   ============================================ */

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.feature-list li i {
    color: var(--color-sunflower);
    font-size: 1.1rem;
}

/* ============================================
   Info Cards (Location, Beach, etc.)
   ============================================ */

.info-card {
    background: var(--color-white);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-sunflower);
}

.info-card h3 {
    color: var(--color-terracotta);
    margin-bottom: 1rem;
}

.distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-sand);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
}

.distance-badge i {
    color: var(--color-sunflower);
}

/* ============================================
   Map Container
   ============================================ */

.map-container {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ============================================
   House Rules
   ============================================ */

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-gray-lighter);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.rule-icon-check {
    background: rgba(107, 127, 58, 0.12);
    color: var(--color-olive);
}

.rule-icon-time {
    background: rgba(242, 169, 0, 0.12);
    color: var(--color-sunflower-dark);
}

.rule-icon-warn {
    background: rgba(199, 91, 57, 0.12);
    color: var(--color-terracotta);
}

/* ============================================
   Gallery
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-sand);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-gray-light);
}

.gallery-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

/* ============================================
   Contact
   ============================================ */

.contact-card {
    background: var(--color-white);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

.footer-sunflower {
    background: var(--color-charcoal);
    color: var(--color-gray-light);
    padding: 3rem 0 1.5rem;
}

.footer-sunflower h5 {
    color: var(--color-sunflower);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-sunflower a {
    color: var(--color-gray-light);
    transition: color 0.3s ease;
}

.footer-sunflower a:hover {
    color: var(--color-sunflower);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-page {
        padding: 3rem 0;
    }

    .info-card {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}
