/* 
 * Seven Home Properties - Brand Aligned Stylesheet
 * Color Palette: Warm beige/tan tones
 * Typography: Cormorant Garamond (headings) + Montserrat (body)
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - Warm Beige Palette */
    --primary-color: #A18167;        /* Brown/terracotta - main accent */
    --primary-dark: #8B6E55;         /* Darker brown */
    --primary-light: #D1B7A1;        /* Tan */
    --secondary-color: #B5A642;      /* Gold/olive from logo */
    --secondary-dark: #9A8C38;       /* Darker gold */
    
    /* Background Colors */
    --bg-cream: #EFDCCC;             /* Light cream */
    --bg-beige: #E9D3C0;             /* Warm beige */
    --bg-tan: #DBC2AD;               /* Tan/camel */
    --bg-light: #F7F0EA;             /* Very light cream */
    
    /* Text Colors */
    --text-dark: #3D3328;            /* Dark warm brown */
    --text-medium: #6B5D52;          /* Medium brown */
    --text-light: #8B7D72;           /* Light brown */
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --border-color: #D9CFC5;
    --border-light: #E8DFD6;
    
    /* Shadows */
    --shadow: 0 2px 8px rgba(161, 129, 103, 0.12);
    --shadow-md: 0 4px 16px rgba(161, 129, 103, 0.15);
    --shadow-lg: 0 10px 30px rgba(161, 129, 103, 0.18);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 400;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.logo-mobile {
    display: none;
}

.language-selector {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-dark);
    transition: all 0.3s;
}

.language-selector:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.language-selector:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(181, 166, 66, 0.15);
}

/* Hamburger Menu */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-btn:hover span {
    background: var(--primary-color);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 72px);
    background: var(--white);
    box-shadow: -4px 0 20px rgba(161, 129, 103, 0.15);
    transition: right 0.3s ease;
    z-index: 98;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: var(--bg-cream);
    border-color: var(--border-color);
    transform: translateX(-5px);
    color: var(--primary-color);
}

.menu-item span:first-child {
    font-size: 1.3rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-tan) 0%, var(--primary-light) 50%, var(--bg-beige) 100%);
    color: var(--text-dark);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a18167' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    color: var(--text-dark);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-medium);
    letter-spacing: 0.02em;
}

/* Filters Section */
.filters-section {
    background: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-light);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.filter-input {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(161, 129, 103, 0.12);
}

.filter-input:hover {
    border-color: var(--primary-light);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Apartments Section */
.apartments-section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    letter-spacing: 0.03em;
    text-align: center;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Apartment Card */
.apartment-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

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

.apartment-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

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

.apartment-card:hover .apartment-image img {
    transform: scale(1.08);
}

.price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.apartment-content {
    padding: 1.75rem;
}

.apartment-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.apartment-address {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apartment-features {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.amenities-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.amenity-badge {
    background: var(--bg-light);
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.apartment-card:hover .amenity-badge {
    background: var(--bg-cream);
    border-color: var(--border-color);
}

.apartment-highlights {
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.highlight-item {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 0.4rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Detail Page */
.apartment-detail-page {
    background: var(--white);
    min-height: 100vh;
}

.detail-page-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    position: sticky;
    top: 72px;
    z-index: 99;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.back-btn:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.detail-page-content {
    padding: 3rem 0 5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3.5rem;
}

.detail-main {
    min-width: 0;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--bg-cream);
    transform: translateY(-50%) scale(1.1);
    color: var(--primary-color);
}

.carousel-prev {
    left: 1.5rem;
}

.carousel-next {
    right: 1.5rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.3);
    border-color: var(--white);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Detail Info Section */
.detail-info-section {
    background: var(--white);
}

.detail-page-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.detail-page-address {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.address-icon {
    font-size: 1.2rem;
}

.detail-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-info-item .info-icon {
    font-size: 1.75rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-section {
    margin-bottom: 3rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.description-text {
    color: var(--text-medium);
    line-height: 1.8;
}

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

.amenity-item-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 0.95rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.amenity-item-detail:hover {
    background: var(--bg-cream);
    border-color: var(--border-color);
}

.amenity-check {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nearby-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 0.95rem;
    border: 1px solid var(--border-light);
}

.nearby-icon {
    font-size: 1.2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 0.95rem;
    border: 1px solid var(--border-light);
}

/* Booking Sidebar */
.detail-sidebar {
    position: relative;
}

.booking-card-sticky {
    position: sticky;
    top: 150px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.booking-card-price {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 500;
    color: var(--primary-color);
}

.price-per {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.booking-form-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group-detail {
    display: flex;
    flex-direction: column;
}

.form-group-detail label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group-detail input,
.form-group-detail select,
.form-group-detail textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s;
}

.form-group-detail input:focus,
.form-group-detail select:focus,
.form-group-detail textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(161, 129, 103, 0.12);
}

.form-group-detail input:hover,
.form-group-detail select:hover,
.form-group-detail textarea:hover {
    border-color: var(--primary-light);
}

.form-group-detail textarea {
    resize: vertical;
}

.booking-summary-detail {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 0.5rem;
    border: 1px solid var(--border-light);
}

.booking-summary-detail h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.summary-row-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.summary-total-detail {
    font-size: 1.15rem;
    font-weight: 600;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    color: var(--text-dark);
}

.btn-submit-detail {
    width: 100%;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-submit-detail:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 166, 66, 0.3);
}

.btn-submit-detail:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-cream);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--bg-cream);
}

.footer-contacts {
    text-align: center;
}

.footer-contacts h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--bg-cream);
    letter-spacing: 0.05em;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-item a {
    color: var(--bg-cream);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--secondary-color);
}

.footer-icon {
    font-size: 1rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(239, 220, 204, 0.2);
}

.footer-copyright {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-powered {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-powered a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-powered a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.footer-powered sup {
    font-size: 0.65em;
}

/* Loading & No Results */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-card-sticky {
        position: static;
    }
    
    .detail-page-header {
        top: 0;
    }
}

@media (max-width: 768px) {
    .logo-full {
        display: none;
    }
    
    .logo-mobile {
        display: inline;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 3.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .filters {
        grid-template-columns: 1fr;
        display: flex;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .filters::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .filter-group {
        min-width: 140px;
        flex-shrink: 0;
    }
    
    .filter-group label {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .filter-input {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        min-width: 100px;
        padding: 0.7rem 1.5rem;
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .apartments-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        height: 300px;
        border-radius: 12px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
    
    .detail-page-title {
        font-size: 2rem;
    }
    
    .detail-quick-info {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .amenities-grid-detail {
        grid-template-columns: 1fr;
    }
    
    .booking-card-sticky {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 2.25rem;
    }
    
    /* Footer responsive */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-logo {
        height: 45px;
    }
    
    .footer-brand-name {
        font-size: 1.1rem;
    }
    
    .footer-contact-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .detail-quick-info {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--bg-tan);
    color: var(--text-dark);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* --- NUOVI STILI HEADER E CONTATTI --- */

/* Contenitore contatti centrale */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1.5rem; /* Spazio laterale */
}

/* Stile base dei bottoni contatto */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

/* Colori specifici al passaggio del mouse o attivi */
.contact-btn:hover {
    background-color: var(--bg-light);
}

.contact-btn.whatsapp:hover i { color: #25D366; } /* Verde WhatsApp ufficiale */
.contact-btn.phone:hover i { color: var(--primary-color); }
.contact-btn.email:hover i { color: var(--primary-color); }

/* Stile Icone */
.contact-btn i {
    font-size: 1.25rem; /* Dimensione icone decente */
}

/* --- RESPONSIVE (Mobile e Tablet) --- */

@media (max-width: 1024px) {
    .header-contacts {
        margin: 0 0.5rem;
        gap: 0.5rem;
    }
    
    /* Su tablet nascondiamo l'email estesa perché troppo lunga */
    .contact-btn.email .contact-label {
        display: none;
    }
}

@media (max-width: 768px) {
    /* 1. Nascondi tutto il testo delle etichette su mobile */
    .contact-label {
        display: none;
    }

    /* 2. Ottimizza lo spazio per le icone */
    .header-contacts {
        gap: 0.8rem;
        margin-left: auto; /* Spinge i contatti a destra vicino al menu */
        margin-right: 0.5rem;
    }

    /* 3. Aumenta leggermente le icone per il touch */
    .contact-btn i {
        font-size: 1.4rem;
        color: var(--text-dark);
    }
    
    /* Colore specifico per WhatsApp sempre visibile su mobile */
    .contact-btn.whatsapp i {
        color: #25D366;
    }

    /* 4. Aggiustamenti per far stare tutto in una riga */
    .header-content {
        padding: 0.8rem 0;
    }

    .logo {
        margin-right: auto; /* Logo a sinistra */
    }
    
    /* Riduciamo leggermente il padding del selettore lingua se necessario */
    .language-selector {
        padding: 0.4rem 0.2rem;
    }
    
    /* Se lo schermo è molto piccolo (es. iPhone SE), riduciamo ancora i gap */
    @media (max-width: 380px) {
        .header-contacts {
            gap: 0.4rem;
        }
        .contact-btn i {
            font-size: 1.2rem;
        }
        .logo-img {
            height: 32px;
        }
    }
}