:root {
    --primary: #2c3e50;
    /* Deep Blue/Grey - Modern & Professional */
    --secondary: #3498db;
    /* Fresh Blue - Pool/Sea */
    --accent: #e67e22;
    /* Warm Orange - Sunset/Hospitality */
    --bg-light: #f9f9f9;
    --text-main: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-heading: 'Arial', sans-serif;
    /* Clean Modern */
    --font-body: 'Arial', sans-serif;
    /* Clean Modern */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

/* Header / Nav */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: 0.3s;
    padding: 0;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    padding: 180px 0;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero_placeholder.jpg') center/cover no-repeat;
    background-attachment: scroll !important;
    /* Force scroll behavior */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-color: #888;
    /* Fallback */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Highlights Section */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.highlight-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.highlight-card h3 {
    color: var(--secondary);
}

/* Apartments Section */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    align-items: stretch;
    /* Ensure equal height */
}

.apartment-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.apartment-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.apt-img {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
    /* For badge positioning */
}

.apt-occupancy-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.apt-img-blue {
    background: linear-gradient(135deg, #a8c0ff 0%, #3f2b96 100%);
}

.apt-img-flieder {
    background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%);
}

.apt-img-orange {
    background: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
}

.apt-img-vivid {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.apt-img-studio {
    background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
}

/* Placeholder */
.apt-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Fill remaining space */
}

.apt-details h3 {
    margin-top: 0;
}

.apt-details p {
    flex-grow: 1;
    /* Push button to bottom */
}

.apt-features {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* General Amenities Bar */
.general-amenities-bar {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.general-amenities-bar h3 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.5rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    text-align: center;
}

.amenity-item {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.amenity-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.amenity-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
}

.amenity-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

/* Highlights Grid - Square Layout */
.square-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.highlight-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--secondary);
}

@media (max-width: 900px) {
    .square-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .square-grid {
        grid-template-columns: 1fr;
    }
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Mobile Menu todo */
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Booking Tool Styles */
.booking-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .booking-grid-layout {
        grid-template-columns: 1fr;
    }
}

.calendar-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.two-month-container {
    margin-top: 15px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.nav-btn:hover {
    background: #2980b9;
}

.dual-calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .dual-calendar {
        grid-template-columns: 1fr;
    }
}

.single-calendar {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
}

.calendar-day-header {
    font-weight: bold;
    font-size: 0.75rem;
    color: #666;
    padding: 5px 0;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    /* Wide modal for gallery */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    background: var(--bg-light);
}

.modal-header h2 {
    margin: 0;
    padding-right: 40px;
    /* Space for close button */
}

.modal-body {
    padding: 30px;
}

.modal-desc-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.modal-features-list {
    margin: 20px 0 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.modal-feature-badge {
    background: #eee;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Gallery Grid (8 Images) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on desktop */
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Quadratic */
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: var(--bg-light);
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
    }

    .modal-content {
        margin: 2% auto;
        /* Less margin on mobile */
        width: 95%;
        max-height: 95vh;
    }
}

.calendar-day {
    padding: 8px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover:not(.booked):not(.empty) {
    background-color: #eee;
}

.calendar-day.selected {
    background-color: var(--secondary);
    color: white;
    font-weight: bold;
}

.calendar-day.booked {
    background-color: #fee;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.empty {
    cursor: default;
}

.legend {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    justify-content: center;
    margin-top: 10px;
}

.legend .dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px;
}

.legend .dot.free {
    background: white;
    border: 1px solid #ddd;
}

.legend .dot.booked {
    background: #fee;
    border: 1px solid #e74c3c;
}

.legend .dot.selected {
    background: var(--secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-row {
    display: flex;
    gap: 10px;
}

.btn-booking {
    width: 100%;
    margin-top: 10px;
}

/* Booking Tool Improvements */
.booking-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.booking-selection-grid .apartment-card {
    padding: 15px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.booking-selection-grid .apartment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.booking-selection-grid .apartment-card.selected {
    border-color: var(--secondary);
    /* Blue */
    background-color: #f0f8ff;
    /* AliceBlue */
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

.booking-selection-grid .apartment-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.booking-selection-grid .apartment-details {
    font-size: 0.85rem;
    color: #666;
}