/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --accent: #2997ff;
    --accent-hover: #0071e3;
    --border-color: #d2d2d7;
    --hero-overlay: rgba(0, 0, 0, 0.5);
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 10px;
    border: 3px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #86868b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    font-weight: 300;
    color: rgba(29, 29, 31, 0.65);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background-color: #000;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 980px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    margin-top: 8rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem;
    margin: 1.5rem 0 3rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Properties Section */
.properties-section {
    padding: 10rem 4rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header p {
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
}

/* Controles de Filtros y Mapa */
.filters-container {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.filter-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.filter-group:focus-within {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.1);
}

.filter-icon {
    color: var(--accent);
    margin-right: 0.8rem;
}

.filter-input,
.filter-select {
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
}

.filter-select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-toggle-view {
    padding: 0.8rem 1.5rem;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-toggle-view:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(41, 151, 255, 0.2);
}

.btn-toggle-view.active-map {
    background-color: var(--accent);
}

/* Map Container */
.map-container {
    max-width: 1400px;
    margin: 0 auto 4rem;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    opacity: 1;
    transition: opacity 0.3s, height 0.3s;
}

.map-container.hidden {
    display: none;
    opacity: 0;
}

#propertiesMap {
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #f0f0f0;
    /* Color de fondo para depuración */
}

/* Leaflet Custom Popups (Apple Style) */
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    width: 250px !important;
}

.map-popup-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.map-popup-info {
    padding: 1rem;
}

.map-popup-price {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.map-popup-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-popup-btn {
    display: block;
    text-align: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.map-popup-btn:hover {
    background: #e5e5ea;
}

.leaflet-container a.leaflet-popup-close-button {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    padding: 8px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.property-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
    cursor: pointer !important;
}

.property-spanner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
    /* Para móviles que requieren contenido real para que z-index y click funcionen bien */
    background: transparent url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7') 0 0 repeat;
}

.property-actions {
    padding: 0 2rem 2rem;
    margin-top: -0.5rem;
    position: relative;
    z-index: 5;
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
}

.property-image-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f7;
    position: relative;
}

.property-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 980px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.type-sale {
    background: rgba(41, 151, 255, 0.9);
    color: white;
}

.type-rent {
    background: rgba(52, 199, 89, 0.9);
    /* Apple Green */
    color: white;
}

.property-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.property-card:hover .property-image {
    transform: scale(1.06);
}

.property-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-info h3, .property-info .property-price {
    transition: color 0.3s;
}

.property-card:hover .property-price {
    color: var(--accent);
}

.property-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.property-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.detail-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
}

.btn-inquire {
    width: 100%;
    padding: 1rem;
    border-radius: 980px;
    background-color: var(--text-primary);
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: auto;
}

.btn-inquire:hover {
    background-color: #000;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2500;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: #e5e5ea;
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--bg-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.property-badge-group {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.property-badge {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.btn-submit {
    width: 100%;
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #000;
    transform: scale(1.02);
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-message i {
    font-size: 3rem;
    color: #34c759;
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

/* --- Admin Panel Definitive Styles --- */
.admin-prop-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-prop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.admin-prop-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.admin-prop-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
}

.admin-prop-img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    background: #eee;
}

.admin-prop-text {
    display: flex;
    flex-direction: column;
}

.admin-prop-text strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.admin-prop-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.admin-prop-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit-sm, .btn-delete-sm {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-sm {
    background: rgba(41, 151, 255, 0.1);
    color: var(--accent);
}

.btn-edit-sm:hover {
    background: var(--accent);
    color: white;
}

.btn-delete-sm {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.btn-delete-sm:hover {
    background: #ff3b30;
    color: white;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
}

/* --- Nuevas Secciones Premium --- */

/* Servicios */
.services-section {
    padding: 10rem 4rem;
    background-color: var(--bg-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    text-align: left;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Nosotros / Equipo */
.about-section {
    padding: 10rem 4rem;
    background-color: #fcfcfd;
    position: relative;
}

.about-section::before,
.about-section::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.about-section::before {
    top: 0;
}

.about-section::after {
    bottom: 0;
}

.container-about {
    max-width: 1400px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
}

.about-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-image {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Testimonios */
.testimonials-section {
    padding: 10rem 4rem;
    background-color: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
}

.stars {
    color: #FFD700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    gap: 0.3rem;
}

.review {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.client-info h4 {
    font-weight: 600;
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Newsletter CTA */
.newsletter-section {
    padding: 10rem 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 980px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.newsletter-form button {
    padding: 1rem 2rem;
}


/* Footer */
footer {
    padding: 6rem 4rem 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.social-links a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-links a:hover {
    color: var(--text-primary) !important;
    transform: translateY(-3px);
}

/* Responsive */
.mobile-only-link {
    display: none;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 0.8rem 1rem;
    }

    .nav-cta {
        display: none !important;
    }

    .mobile-only-link {
        display: block;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .properties-section {
        padding: 4rem 2rem;
    }

    .services-section,
    .about-section,
    .testimonials-section,
    .newsletter-section {
        padding: 4rem 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 3rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* --- Property Details Page Styles --- */

.solid-nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.property-page-header {
    margin-top: 5rem;
    padding: 2rem 4rem;
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
}

.image-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 300px);
    gap: 16px;
    height: 616px;
    border-radius: 32px;
    overflow: hidden;
    background: #f5f5f7;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.image-gallery.single-image {
    grid-template-columns: 1fr;
}

.main-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

#currentMainImage {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 5;
    background: transparent;
}

.main-image:hover #currentMainImage {
    transform: scale(1.02);
}

.image-gallery:not(.single-image) #currentMainImage {
    object-fit: cover !important;
    /* Consistent with previous fix */
}

.main-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.side-images {
    grid-column: 2;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    height: 100%;
}

.thumb-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f5f7;
}

.thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s, opacity 0.3s;
    cursor: pointer;
}

.thumb-container img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

#propertiesMap .leaflet-popup-content-wrapper {
    overflow: hidden;
}

.leaflet-popup-content img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.property-page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem 6rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.ref-badge {
    background: var(--bg-secondary);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 1rem;
}

.p-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.p-location {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.p-key-stats {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.stat-box span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.stat-box strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.p-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.p-section.border-none {
    border-bottom: none;
}

.p-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.p-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.features-list i {
    color: rgba(52, 199, 89, 0.9);
    /* Apple green */
}

.tech-spec-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
}

.tech-spec {
    font-size: 0.95rem;
}

.property-sidebar {
    position: relative;
}

.sticky-contact-box {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.s-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.s-taxes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 1rem;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.agent-info strong {
    display: block;
    font-size: 0.95rem;
}

.agent-info p {
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .property-page-content {
        grid-template-columns: 1fr;
        padding: 0 2rem 4rem;
    }

    .property-page-header {
        padding: 2rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .side-images {
        display: none;
        /* Hide side images on small screens for simplicity, like many premium apps */
    }

    .main-image {
        height: 60vh;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

/* Admin Styles */
.btn-admin-access {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer !important;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-admin-access:hover {
    opacity: 1;
    color: var(--text-primary);
}

.admin-modal-wide {
    max-width: 800px;
    width: 95%;
}

.form-row-flex {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
    min-width: 150px;
}

.flex-2 {
    flex: 2;
    min-width: 250px;
}

.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.image-upload-area:hover {
    border-color: var(--accent);
    background: rgba(41, 151, 255, 0.05);
    color: var(--accent);
}

.image-upload-area i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.preview-miniatures {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preview-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-modal-wide {
    max-width: 800px !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.admin-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
    position: relative;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
}

.admin-prop-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar for Admin */
.admin-prop-list::-webkit-scrollbar,
#adminFormScrollArea::-webkit-scrollbar {
    width: 6px;
}

.admin-prop-list::-webkit-scrollbar-thumb,
#adminFormScrollArea::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 10px;
}

#adminPropertiesList {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.admin-prop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.8rem;
    gap: 1rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.admin-prop-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-prop-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-prop-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f7;
    flex-shrink: 0;
}

.admin-prop-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.admin-prop-text p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-secondary);
}

.admin-prop-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-edit-sm:hover {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.btn-delete-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: #fff0f0;
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.25);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-delete-sm:hover {
    background: #ff3b30;
    color: white;
    border-color: #ff3b30;
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .admin-prop-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-prop-actions {
        width: 100%;
    }

    .btn-edit-sm,
    .btn-delete-sm {
        flex: 1;
        text-align: center;
    }
}

/* Lightbox Modal Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
    overflow: hidden;
    cursor: zoom-out;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 50px;
    font-weight: 200;
    transition: 0.3s;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    color: white;
    cursor: pointer;
}

/* GLOBAL IMAGE FIX: NO MORE BLACK LINES */
.main-image img,
#currentMainImage,
.side-images img,
.thumb-container img,
.map-popup-img {
    object-fit: cover !important;
    /* FILL THE SPACE */
    object-position: center 40% !important;
    /* Architecture focus */
    background-color: #f5f5f7 !important;
    width: 100% !important;
    height: 100% !important;
}

.lightbox-content {
    object-fit: contain !important;
    /* Only fullscreen visor keeps original ratio */
    background-color: transparent !important;
}

/* HERO SEARCH BAR STYLES */
.hero-search-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
    /* Extra space to separate from the button */
    width: 100%;
    max-width: 700px;
    z-index: 100;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 980px;
    padding: 0.8rem 0.8rem 0.8rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-search-box:focus-within {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-search-box i {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 1.2rem;
    font-size: 1.2rem;
}

.hero-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.15rem;
    padding: 0.5rem 0;
    font-family: inherit;
    font-weight: 400;
}

.hero-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.btn-search-hero {
    background: white;
    color: var(--text-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.btn-search-hero:hover {
    transform: scale(1.03);
    background: #f5f5f7;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .hero-search-box {
        padding-left: 1rem;
    }

    .btn-search-hero {
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 900px) {
    .image-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 400px auto;
        height: auto;
    }

    .main-image {
        grid-row: 1;
    }

    .side-images {
        grid-column: 1;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 150px;
    }

    .thumb-container {
        height: 150px;
    }
}

/* Legal Pages Styles */
.legal-page {
    background-color: var(--bg-primary);
}

.container-legal {
    max-width: 900px;
    margin: 10rem auto 6rem;
    padding: 0 2rem;
}

.container-legal h1 {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 3rem;
    text-align: center;
}

.legal-content {
    background: white;
    padding: 4rem;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content p,
.legal-content ul {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .container-legal {
        margin-top: 8rem;
    }

    .legal-content {
        padding: 2rem;
    }
}

/* --- GDPR & Cookie Banner Styles --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-buttons .btn-sm {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.gdpr-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.gdpr-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.gdpr-checkbox label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

.gdpr-checkbox a {
    color: var(--text-primary);
    text-decoration: underline;
}

.legal-info-text {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.legal-info-text p {
    margin: 0;
}

.legal-info-text a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.newsletter-input-group input {
    flex: 1;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }

    .mobile-hidden {
        display: none;
    }

    .newsletter-input-group {
        flex-direction: column;
    }
}

/* ============================================
   COOKIE BANNER - RGPD/LSSI COMPLIANT
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.1);
    padding: 1.2rem 2rem;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.cookie-banner-logo {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.cookie-banner-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.cookie-banner-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--text-primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-reject {
    padding: 0.65rem 1.2rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-reject:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.cookie-btn-settings {
    padding: 0.65rem 1.2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-settings:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
}

.cookie-btn-accept {
    padding: 0.65rem 1.4rem;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* Cookie Settings Modal List */
.cookie-settings-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1.5rem;
}

.cookie-setting-item:last-child {
    border-bottom: none;
}

.cookie-setting-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.cookie-setting-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: #d2d2d7;
    border-radius: 12px;
    transition: background 0.3s;
    position: relative;
    display: block;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-toggle input:checked+.toggle-slider {
    background: #34c759;
}

.cookie-toggle input:checked+.toggle-slider::after {
    transform: translateX(20px);
}

.cookie-toggle.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.2rem 1.2rem 1.4rem;
    }

    .cookie-banner-inner {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn-reject,
    .cookie-btn-settings,
    .cookie-btn-accept {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    width: 44px;
    height: 44px;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .properties-section,
    .services-section,
    .about-section,
    .testimonials-section,
    .newsletter-section {
        padding: 6rem 2.5rem;
    }

    .about-content {
        gap: 3rem;
    }

    .about-text h2 {
        font-size: 2.8rem;
    }

    .footer-content {
        gap: 2rem;
        padding: 0 2.5rem;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

    /* --- NAV MOBILE --- */
    .navbar {
        padding: 0.9rem 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 80vw);
        height: 100dvh;
        background: var(--apple-white);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000 !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        visibility: visible !important;
    }

    .nav-links.mobile-open {
        right: 0 !important;
    }

    .nav-links li a {
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-primary) !important;
        opacity: 1 !important;
        display: block;
        padding: 0.5rem 0;
        width: 100%;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1.1rem 0;
        font-size: 1.15rem;
        font-weight: 500;
        opacity: 1;
    }

    .nav-overlay {
        z-index: 1500;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-cta {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-left: auto;
        margin-right: 1rem;
    }

    .hamburger-btn {
        display: flex;
        margin-left: 0;
    }

    /* --- HERO MOBILE --- */
    h1 {
        font-size: 2.8rem;
        letter-spacing: -0.03em;
    }

    .hero {
        background-attachment: scroll;
        /* fixed doesn't work well on mobile */
        min-height: 100dvh;
    }

    .hero-content {
        padding: 1.5rem;
        margin-top: 5rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin: 1rem 0 2rem;
    }

    .hero-search-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-search-box {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 0.5rem 1rem;
        background: white;
        border-radius: 50px;
    }

    .hero-search-box input {
        flex: 1;
        font-size: 0.9rem;
    }

    .btn-search-hero {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* --- SECTIONS MOBILE --- */
    .properties-section,
    .services-section,
    .about-section,
    .testimonials-section,
    .newsletter-section {
        padding: 4rem 1.2rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* --- FILTERS MOBILE --- */
    .filters-container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.2rem;
        border-radius: 16px;
        margin-bottom: 2rem;
    }

    .filter-group {
        min-width: unset;
        width: 100%;
    }

    .btn-toggle-view {
        width: 100%;
        justify-content: center;
    }

    /* --- PROPERTY CARDS MOBILE --- */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .property-card {
        max-width: 100%;
    }

    .property-info {
        padding: 1.5rem;
    }

    .property-actions {
        padding: 0 1.5rem 1.5rem;
    }

    .property-details {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    /* --- MAP MOBILE --- */
    .map-container {
        height: 350px;
        border-radius: 16px;
        margin-bottom: 2rem;
    }

    /* --- SERVICES MOBILE --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* --- ABOUT MOBILE --- */
    .about-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image {
        width: 100%;
        max-height: 300px;
        border-radius: 20px;
    }

    .about-image img {
        max-height: 300px;
    }

    /* --- TESTIMONIALS MOBILE --- */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .review {
        font-size: 0.95rem;
    }

    /* --- NEWSLETTER MOBILE --- */
    .newsletter-content h2 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
        max-width: 100%;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    /* --- FOOTER MOBILE --- */
    footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }

    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* --- MODAL MOBILE --- */
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-height: 90dvh;
        overflow-y: auto;
    }

    .admin-modal-wide {
        max-width: 95%;
    }

    /* --- PROPERTY PAGE (property.html) MOBILE --- */
    .property-page-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .property-sidebar {
        position: static !important;
        top: unset;
    }

    .image-gallery {
        flex-direction: column;
    }

    .gallery-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
        max-height: unset;
    }

    .gallery-thumbnails img {
        min-width: 80px;
        height: 60px;
    }

    /* --- LEGAL PAGES MOBILE --- */
    .container-legal {
        padding: 6rem 1.5rem 3rem;
    }

    .container-legal h1 {
        font-size: 2.2rem;
    }

    .legal-content table {
        font-size: 0.78rem;
    }

    .legal-content table th,
    .legal-content table td {
        padding: 0.5rem 0.6rem !important;
    }

    /* --- ADMIN PANEL MOBILE --- */
    .admin-prop-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-prop-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .btn-edit-sm,
    .btn-delete-sm {
        flex: 1;
        text-align: center;
    }

    /* --- COOKIE BANNER MOBILE (override row to column) --- */
    .cookie-banner {
        padding: 1rem 1rem 1.2rem;
    }

    .cookie-banner-inner {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .cookie-banner-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cookie-btn-reject {
        flex: 1;
    }

    .cookie-btn-settings {
        flex: 0 0 auto;
    }

    .cookie-btn-accept {
        flex: 1;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .property-details {
        gap: 0.5rem;
    }

    .detail-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Utility & Admin Enhancements (v4.5.2) */
.w-100 { width: 100% !important; }
.flex-1 { flex: 1; }
.form-row-flex { display: flex; gap: 1rem; margin-bottom: 0.5rem; }

@media (max-width: 480px) {
    .form-row-flex { flex-direction: column; }
}

.admin-modal-wide {
    max-width: 850px !important;
}

#adminBackupsList .admin-prop-item {
    background: white;
    border-color: #eee;
    margin-bottom: 0.8rem;
}

#adminBackupsList .admin-prop-info i {
    font-size: 1.4rem;
}

.admin-tabs .tab-btn i {
    margin-right: 6px;
}