/**
 * Costa Sun Rentals - Main Styles
 * Modern, clean design with color palette: #000000 and #44ae9f
 */

:root {
    --primary-color: #44ae9f;
    --primary-dark: #2d8a7f;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* ==================== LAYOUT ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 15%, var(--bg-light) 28%);
}

#app.page-location-detail {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 8%, var(--bg-light) 20%);
}

main {
    flex: 1;
}

/* ==================== HEADER ==================== */

.header {
    background: transparent;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.4s ease;
    height: 160px;
    overflow: visible;
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow: visible;
    height: 100%;
}

.logo {
    flex: 0 0 auto;
    order: 1;
    margin-right: 2rem;
    margin-left: -110px;
    padding: 10px 20px;
    position: relative;
    z-index: 1001;
    transition: pointer-events 0.2s ease;
}

.logo.menu-open {
    pointer-events: none;
}

.logo a {
    text-decoration: none;
    color: #000000;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.logo-img {
    height: 106px;
    max-height: 106px;
    width: auto;
    display: block;
    transition: filter 0.3s ease, opacity 0.3s ease;
    object-fit: contain;
}

/* White logo: shown by default (top of page, transparent header) */
.logo-img--white {
    display: block;
}

/* Color logo: hidden by default, shown when scrolled */
.logo-img--color {
    display: none;
}

.header.scrolled .logo-img--white {
    display: none;
}

.header.scrolled .logo-img--color {
    display: block;
}

.header.scrolled .logo-img {
    filter: none;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-solid {
    color: var(--white);
}

.logo-outline {
    color: transparent;
    -webkit-text-stroke: 2px #000000;
    paint-order: stroke fill;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Questa Sans', serif;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-solid {
    color: #000000;
}

.logo-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.3);
    paint-order: stroke fill;
}

.logo-tagline {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: #000000;
    text-transform: uppercase;
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 2;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.header.scrolled .nav-link::after {
    background-color: var(--primary-color);
}

.header.scrolled .logo-solid {
    color: var(--text-dark);
}

.header.scrolled .logo-outline {
    -webkit-text-stroke: 1.8px var(--primary-color);
}

.header.scrolled .logo-tagline {
    color: var(--text-dark);
}

.header.scrolled .lang-btn {
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.2);
}

.header.scrolled .lang-btn:hover {
    border-color: var(--primary-color);
    background: rgba(68, 174, 159, 0.1);
}

.header.scrolled .lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    order: 3;
    margin-left: auto;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    color: var(--white);
}

.lang-btn:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.admin-link {
    flex: 0 0 auto;
    display: none;
    /* Hidden for future use */
}

/* ==================== BUTTONS ==================== */

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-small,
.btn-search {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-search {
    padding: 0.75rem 2rem;
}

/* ==================== HERO SECTION ==================== */

.hero {
    background: transparent;
    color: var(--white);
    padding: 6rem 20px;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-text-solid {
    color: var(--white);
}

.hero-text-outline {
    color: transparent;
    -webkit-text-stroke: 2.5px var(--white);
    paint-order: stroke fill;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ==================== SECTIONS ==================== */

.featured {
    padding: 4rem 20px;
    background: transparent;
}

.featured>.container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ==================== BOOKING WIDGET ==================== */

.booking-widget {
    padding: 4rem 20px;
    background: transparent;
}

.booking-widget .container {
    max-width: 1200px;
    margin: 0 auto;
}

.iframe-wrap {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.iframe-wrap iframe {
    width: 100%;
    height: 900px;
    border: 0;
    display: block;
}

.booking-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
}

/* ==================== APARTMENTS GRID ==================== */

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.apartment-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.apartment-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.apartment-image {
    height: 250px;
    background-color: var(--primary-color);
}

.apartment-info {
    padding: 1.5rem;
}

.apartment-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.apartment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Large Apartment Grid */

.apartments-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.apartment-card-large {
    display: flex;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.apartment-card-large:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.apartment-image-large {
    width: 280px;
    height: 220px;
    flex-shrink: 0;
}

.apartment-details {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rating {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.amenities {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* ==================== QUICK LINKS ==================== */

.quick-links {
    padding: 4rem 20px;
    background-color: var(--bg-light);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.quick-link {
    background: linear-gradient(135deg, #44ae9f 0%, #2d8a7f 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-link:nth-child(1)::before {
    background: linear-gradient(135deg, rgba(68, 174, 159, 0.08) 0%, rgba(45, 138, 127, 0.05) 100%);
}

.quick-link:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(100, 200, 150, 0.08) 0%, rgba(68, 174, 159, 0.05) 100%);
}

.quick-link:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(68, 174, 159, 0.08) 0%, rgba(100, 200, 150, 0.05) 100%);
}

.quick-link:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    background: linear-gradient(135deg, #3a9589 0%, #236d64 100%);
}
}

.quick-link-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.quick-link h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.quick-link p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ==================== PAGE HEADER ==================== */

.page-header {
    background: transparent;
    color: var(--white);
    padding: 3rem 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ==================== APARTMENTS SECTION ==================== */

.apartments-section {
    padding: 3rem 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filters-sidebar {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
}

.filters-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.filter-slider,
.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: inherit;
}

.price-display {
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.apartments-main {
    flex: 1;
}

/* ==================== APARTMENTS MODERN LISTING ==================== */

.apartments-page {
    padding: 3rem 20px 5rem;
}

.apartments-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.results-count {
    font-weight: 600;
    color: var(--text-dark);
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.apartments-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.filter-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    height: fit-content;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-grid input {
    margin-right: 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.apartments-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .apartments-grid-modern {
        grid-template-columns: 1fr !important;
    }
}

.apartment-card-modern {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.apartment-card-modern:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.apartment-media {
    height: 200px;
    background: linear-gradient(135deg, #44ae9f 0%, #2d8a7f 100%);
}

.apartment-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apartment-top h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.apartment-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background-color: rgba(68, 174, 159, 0.15);
    color: var(--primary-color);
}

.badge-popular {
    background-color: rgba(255, 193, 7, 0.18);
    color: #c48b00;
}

.apartment-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.apartment-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.apartment-features li {
    background: var(--bg-light);
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
}

.apartment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.apartment-footer .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.apartment-footer .price span {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 0.25rem;
    font-weight: 500;
}

/* ==================== FLIGHTS SECTION ==================== */

.flights-section,
.car-rental-section {
    padding: 3rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.flight-search-card,
.car-search-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-input {
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(68, 174, 159, 0.1);
}

.featured-routes {
    margin-top: 3rem;
}

.featured-routes h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.route-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.route-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.route-header .from,
.route-header .to {
    font-weight: 600;
}

.route-header .arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.route-info {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.route-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.integration-notice {
    background-color: #e8f5f3;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 3rem;
}

/* Car Categories */

.car-categories {
    margin-top: 3rem;
}

.car-categories h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.car-category {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.car-category:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.car-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.car-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.car-category p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Features Section */

.features-section {
    margin-top: 3rem;
}

.features-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==================== BLOG SECTION ==================== */

.blog-section {
    padding: 3rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-section>h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.blog-image {
    height: 200px;
    background-color: var(--primary-color);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-meta .date {
    font-weight: 500;
}

.blog-meta .category {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ==================== CONTACT SECTION ==================== */

.contact-section {
    padding: 3rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    padding: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(68, 174, 159, 0.1);
}

.contact-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    min-width: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(68, 174, 159, 0.3);
}

/* ==================== ADMIN LOGIN ==================== */

.admin-login {
    padding: 4rem 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.login-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
}

.login-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ==================== ADMIN SECTION ==================== */

.admin-section {
    padding: 2rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.admin-nav {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
}

.admin-nav ul {
    list-style: none;
}

.admin-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-nav-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.admin-main {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

/* ==================== FOOTER ==================== */

.footer {
    background-color: var(--text-dark);
    color: var(--white);
    margin-top: 4rem;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Footer Responsiveness */
@media (max-width: 1200px) {
    .footer-content {
        gap: 100px !important;
    }
}

@media (min-width: 577px) and (max-width: 1024px) {
    .footer-content {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px !important;
    }

    .footer-content>.footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        gap: 90px !important;
        flex-wrap: wrap;
    }

    .footer-content>div[style*="display: flex"] {
        gap: 90px !important;
    }
}

@media (max-width: 576px) {
    .footer-content {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .footer-content>div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section ul li {
        margin-bottom: 0.3rem;
    }
}


/* ==================== LEGAL PAGES ==================== */

.legal-section {
    padding: 3rem 20px 5rem;
    background-color: var(--bg-light);
}

.legal-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.legal-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.legal-card p,
.legal-card li {
    color: var(--text-light);
    font-size: 0.98rem;
}

.legal-card ul {
    margin-left: 1.2rem;
    margin-top: 0.75rem;
}

/* ==================== COOKIE BANNER ==================== */

.cookie-banner {
    position: fixed;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
}

.cookie-banner__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
}

.cookie-banner__text h4 {
    margin-bottom: 0.5rem;
}

.cookie-banner__text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.cookie-banner__text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner--hidden {
    display: none;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-sizing: border-box;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
    }

    .cookie-banner__content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        box-sizing: border-box;
        width: 100%;
    }

    .cookie-banner__text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .cookie-banner__text p {
        font-size: 0.8rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .cookie-banner__actions {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .cookie-banner__actions .btn-primary,
    .cookie-banner__actions .btn-secondary {
        flex: 1;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        box-sizing: border-box;
        min-width: 0;
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .apartments-section {
        grid-template-columns: 1fr;
    }

    .apartments-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: sticky;
        top: 80px;
    }

    .apartment-card-large {
        flex-direction: column;
    }

    .apartment-image-large {
        width: 100%;
        height: 200px;
    }

    .search-inputs {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper h2,
    .contact-info h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .admin-content {
        grid-template-columns: 1fr;
    }

    @media (max-width: 480px) {
        .apartments-grid {
            grid-template-columns: 1fr;
        }

        .hero-content h1 {
            font-size: 1.75rem;
        }

        .nav-list {
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .nav-link {
            font-size: 0.85rem;
        }

        .contact-form-wrapper h2,
        .contact-info h2 {
            font-size: 1.15rem;
            margin-bottom: 1rem;
        }

        .form-group label {
            font-size: 0.9rem;
        }

        .form-input,
        .form-textarea {
            padding: 0.75rem;
            font-size: 16px;
        }

        .contact-info {
            padding: 1rem;
            gap: 1rem;
        }

        .info-item {
            gap: 1rem;
        }

        .social-icons {
            flex-wrap: wrap;
        }
    }
}

/* ==================== HAMBURGER MENU ==================== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    order: 10;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger color change when scrolled past gradient */
.header.scrolled .hamburger-menu span {
    background-color: var(--primary-color);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

.mobile-nav-link:hover {
    opacity: 0.8;
}

.mobile-language-switcher {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 4px;
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-lang-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* ==================== MOBILE RESPONSIVE ==================== */

/* ==================== TABLET RESPONSIVE (iPad, smaller tablets) ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .hamburger-menu {
        display: flex !important;
        margin-left: auto !important;
        margin-right: 20px !important;
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: flex !important;
    }

    .nav {
        display: none;
    }

    .language-switcher {
        display: none;
    }

    .header-content {
        flex-wrap: nowrap;
        gap: 0;
    }

    .logo {
        margin-left: -55px;
        margin-right: 0;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .logo {
        margin-left: 0;
        margin-right: 0;
        flex: 0 0 auto;
        padding: 6px 10px;
    }

    .logo-img {
        height: 52px;
        max-height: 52px;
    }

    .header-content {
        flex-wrap: nowrap;
        gap: 0;
    }

    .hamburger-menu {
        margin-left: auto !important;
        margin-right: 20px !important;
    }

    .nav {
        display: none;
    }

    .language-switcher {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Desktop: Show nav and language switcher, hide hamburger */
@media (min-width: 1025px) {
    .hamburger-menu {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

    .nav {
        display: flex;
    }

    .language-switcher {
        display: flex;
    }
}