/**
 * Ferienwohnung Hinterthal - Main Stylesheet
 *
 * A modern, responsive vacation rental website
 * No external CSS dependencies
 * MIT License
 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #5a6b4d;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;

    /* Light mode colors (default) */
    --body-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --card-bg: #ffffff;
    --card-shadow: 0 20px 60px rgba(0,0,0,0.15);
    --border-color: #f0f0f0;
    --input-bg: transparent;
    --modal-bg: rgba(0,0,0,0.8);
    --section-bg: #f8f9fa;
    --hover-bg: #f8f9fa;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
}

/* Dark mode colors */
[data-theme="dark"] {
    --body-bg: #0f1419;
    --text-primary: #e1e8ed;
    --text-secondary: #b8c0c9;
    --card-bg: #1c2128;
    --card-shadow: 0 20px 60px rgba(0,0,0,0.5);
    --border-color: #3d444d;
    --input-bg: #1c2128;
    --modal-bg: rgba(0,0,0,0.95);
    --section-bg: #161b22;
    --hover-bg: #2d333b;
    --bg-light: #161b22;
    --text-dark: #e1e8ed;
    --footer-bg: #0d1117;
    --footer-text: #e1e8ed;
    --primary-color: #58a6ff;
    --secondary-color: #7ee083;
}

/* Dark mode specific overrides */
[data-theme="dark"] .main-header.scrolled {
    background: rgba(13, 17, 23, 0.98);
}

[data-theme="dark"] .lang-current {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .main-header.scrolled .lang-current {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .info-icon svg {
    stroke: #7ee083;
}

[data-theme="dark"] .calendar-day.available {
    background: rgba(76, 175, 80, 0.3);
    color: #7ee083;
}

[data-theme="dark"] .calendar-day.booked {
    background: rgba(244, 67, 54, 0.3);
    color: #ff7b72;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    color: var(--text-primary);
    border-bottom-color: #3d444d;
    background: transparent;
}

[data-theme="dark"] .form-group label {
    color: #b8c0c9;
}

[data-theme="dark"] .form-group:has(textarea) textarea {
    background: #1c2128;
    border-color: #3d444d;
    color: var(--text-primary);
}

[data-theme="dark"] .info-icon {
    background: #2d333b;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .location-card {
    background: #2d333b;
    border: 1px solid #3d444d;
}

[data-theme="dark"] .location-card:hover {
    background: #1c2128;
    border-color: #58a6ff;
}

[data-theme="dark"] .calendar-day-header {
    color: #b8c0c9;
}

[data-theme="dark"] .calendar-day.other-month {
    color: #565d67;
}

[data-theme="dark"] .calendar-day.past {
    background: #1c2128;
    color: #565d67;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--body-bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fullscreen Sections */
.fullscreen {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    transition: padding 0.3s ease;
}

.main-header.scrolled .header-content {
    padding: 20px 40px;
}

.brand h1 {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: var(--transition);
}

.main-header.scrolled .brand h1 {
    color: var(--text-dark);
    filter: none;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.main-header.scrolled .lang-current {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.2);
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 120px;
    overflow: hidden;
}

.language-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.lang-option:hover {
    background: var(--bg-light);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: brightness(0.85) contrast(1.2);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 1;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    max-width: 1400px;
}

.hero-location {
    font-size: 0.75rem;
    font-weight: 200;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.85;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 200;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 2rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 3rem;
    text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: white;
    color: var(--text-dark);
    border-color: white;
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 3s infinite ease-in-out;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid rgba(255,255,255,0.8);
    border-bottom: 2px solid rgba(255,255,255,0.8);
    transform: rotate(45deg);
}

/* Apartment Section */
.apartment-section {
    background: var(--section-bg);
}

.apartment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 60px 0;
    align-items: center;
}

/* Custom Gallery Carousel */
.apartment-gallery {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.gallery-carousel {
    height: 100%;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Small white arrows with backdrop */
.carousel-button-next,
.carousel-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button-next:hover,
.carousel-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button-next::after,
.carousel-button-prev::after {
    font-size: 30px;
    height: 35px;
    font-weight: 200;
    color: #ffffff;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.carousel-button-next::after {
    content: '›';
    margin-left: 1px;
}

.carousel-button-prev::after {
    content: '‹';
    margin-right: 1px;
}

.carousel-button-next {
    right: 20px;
}

.carousel-button-prev {
    left: 20px;
}

/* Apartment Info */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.info-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
    transition: var(--transition);
}

.info-item:hover .info-icon {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.info-item:hover .info-icon svg {
    stroke: var(--secondary-color);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

[data-theme="dark"] .info-value {
    color: #ffffff;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.apartment-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.apartment-description p {
    margin-bottom: 15px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.feature-icon {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Location Section */
.location-section {
    background: var(--body-bg);
}

.listings-map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    height: 80vh;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 60px 0;
}

.listings-panel {
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.section-header {
    padding: 20px 40px 30px;
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 10px;
    line-height: 1.5;
}

.location-listings {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    overflow-y: auto;
}

.location-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: none;
    border-radius: 16px;
    background: var(--hover-bg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.location-card:hover {
    background: var(--card-bg);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.location-card.selected {
    background: #f0f8ff;
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(90, 107, 77, 0.2);
    border: 2px solid var(--secondary-color);
}

.location-image {
    flex-shrink: 0;
    width: 100%;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.05);
}

.location-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.location-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-info h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.3;
}

.location-category {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-panel {
    position: relative;
    background: #f8f9fa;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.interactive-map {
    width: 100%;
    height: 100%;
}

.interactive-map iframe {
    width: 100%;
    height: 100%;
}


/* Booking Section */
.booking-section {
    position: relative;
}

.booking-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.booking-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.booking-container {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 600px);
    gap: 60px;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 60px 0;
    z-index: 1;
    justify-content: center;
}

.booking-calendar,
.contact-form-wrapper {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
}

/* Calendar Styles */
.calendar-wrapper {
    margin-top: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 20px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.calendar-nav:hover {
    background: var(--bg-light);
}

#currentMonth {
    font-size: 1.2rem;
    font-weight: 500;
    height: 40px;
    line-height: 42px;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: #4caf50;
}

.legend-dot.booked {
    background: #f44336;
}

/* Calendar Day Styles */
.calendar-day-header {
    font-weight: 600;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: #666;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.calendar-day.available:hover {
    background: #c8e6c9;
}

.calendar-day.booked {
    background: #ffebee;
    color: #c62828;
    cursor: not-allowed;
}

.calendar-day.other-month {
    background: transparent;
    color: #ccc;
    cursor: default;
}

.calendar-day.past {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group:has(textarea) {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    transition: var(--transition);
}

.form-group:has(textarea) textarea {
    flex: 1;
    min-height: 120px;
    resize: none;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
}

.form-group:has(textarea) textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
    outline: none;
    border-bottom-color: var(--secondary-color);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.form-group:has(textarea) label {
    top: 16px;
    left: 12px;
}

.form-group:has(textarea) textarea:focus ~ label,
.form-group:has(textarea) textarea:valid ~ label {
    top: -10px;
    left: 8px;
    background: white;
    padding: 0 4px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #4a5a3e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(90, 107, 77, 0.3);
}

/* Floating Action Button Theme Toggle */
.theme-toggle-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.theme-toggle-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle-fab:active {
    transform: scale(0.95);
}

.theme-toggle-fab .theme-toggle-icon {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.theme-toggle-fab .sun-icon,
.theme-toggle-fab .moon-icon {
    position: absolute;
}

/* Dark mode styles for FAB */
[data-theme="dark"] .theme-toggle-fab {
    background: rgba(28, 33, 40, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle-fab:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle-fab .theme-toggle-icon {
    color: #f0f0f0;
}

/* Footer */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
    font-size: 0.9rem;
    padding: 5px 10px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-separator {
    color: var(--text-light);
    opacity: 0.3;
    font-size: 0.8rem;
}

.footer-copyright p {
    opacity: 0.4;
    font-size: 0.85rem;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    max-width: 1400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: var(--text-primary);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.modal-close:hover {
    color: #333;
}

/* Extra small devices */
@media (max-width: 430px) {
    .apartment-container,
    .listings-map-container,
    .booking-container {
        width: 92%;
        padding: 20px 0;
        gap: 20px;
    }

    .apartment-gallery {
        height: 300px;
    }

    .booking-calendar,
    .contact-form-wrapper {
        padding: 20px;
        max-width: 100%;
    }

    .map-panel {
        height: 300px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(5px);
        opacity: 1;
    }
}

/* Responsive Design */

/* Large desktop optimization */
@media (min-width: 1400px) {
    .booking-calendar,
    .contact-form-wrapper {
        max-width: 550px;
    }
}

@media (max-width: 1024px) {
    .apartment-container,
    .listings-map-container,
    .booking-container {
        grid-template-columns: 1fr;
        width: 85%;
        padding: 40px 0;
    }

    .booking-container {
        grid-template-columns: 1fr;
    }

    .booking-calendar,
    .contact-form-wrapper {
        max-width: 500px;
    }

    .listings-map-container {
        height: auto;
        gap: 40px;
    }
    
    .map-panel {
        height: 400px;
        margin: 0 0 15px 0;
    }

    .listings-panel {
        margin: 15px 0 0 0;
    }
    
    .section-header {
        padding: 20px 20px 20px;
    }
    
    .location-listings {
        padding: 15px;
        gap: 12px;
    }
    
    .location-card {
        padding: 16px;
    }
    
    .location-image {
        height: 80px;
    }
    
}

@media (max-width: 768px) {
    .theme-toggle-fab {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .theme-toggle-fab .theme-toggle-icon {
        width: 18px;
        height: 18px;
    }

    .footer-links {
        justify-content: center;
    }
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .info-grid,
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .apartment-container,
    .listings-map-container,
    .booking-container {
        width: 90%;
        padding: 30px 0;
        gap: 30px;
    }
    
    .section-header {
        padding: 20px 15px 20px;
    }
    
    .location-listings {
        grid-template-columns: 1fr;
        padding: 15px 15px 40px;
        gap: 16px;
        overflow-y: visible;
    }
    
    .location-card {
        padding: 16px;
        text-align: center;
    }
    
    .location-image {
        height: 120px;
    }
    
    
    .location-card:hover {
        transform: translateY(-2px);
    }
    
    .location-card.selected {
        transform: translateY(-4px);
    }

    .apartment-gallery {
        height: 400px;
    }

    .booking-calendar,
    .contact-form-wrapper {
        padding: 25px;
        max-width: 100%;
    }
}