/* ===== CSS Variables & Design Tokens ===== */
:root {
    --color-primary: #1e3a5f;
    --color-primary-dark: #142942;
    --color-primary-light: #2a5082;
    --color-accent: #d4af37;
    --color-accent-light: #e8c960;
    --color-text: #1a1a2e;
    --color-text-muted: #5a6c7d;
    --color-background: #fafbfc;
    --color-surface: #ffffff;
    --color-border: #e0e6ed;
    --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #2a5082 50%, #1e3a5f 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 20px rgba(30, 58, 95, 0.12);
    --shadow-lg: 0 8px 40px rgba(30, 58, 95, 0.16);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===== Layout ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* ===== Header ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(224, 230, 237, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
#hero {
    background: var(--gradient-hero);
    padding: 8rem 0;
    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='%23ffffff' fill-opacity='0.03'%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");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

#hero h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

#hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CTA Button ===== */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.cta-arrow {
    transition: var(--transition-fast);
}

.cta:hover .cta-arrow {
    transform: translateX(5px);
}

/* ===== Features Section ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature {
    padding: 2.5rem;
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature p {
    font-size: 1rem;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Property Cards ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.property-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
}

.property-icon {
    font-size: 5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.property-content {
    padding: 1.75rem;
}

.property-card h3 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.property-card>.property-content>p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.property-details {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.detail-icon {
    font-size: 1.1rem;
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--gradient-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.contact-section h2 {
    color: #fff;
    text-align: center;
}

.contact-section>.main-container>p {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    transition: var(--transition-smooth);
}

.contact-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-box h3 {
    color: var(--color-accent-light);
    margin-bottom: 0.75rem;
}

.contact-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.contact-box a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-box a:hover {
    color: var(--color-accent-light);
}

/* ===== Footer ===== */
footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
}

/* ===== Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .main-container {
        padding: 0 1.25rem;
    }

    section {
        padding: 4rem 0;
    }

    #hero {
        padding: 5rem 0;
    }

    nav {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .features {
        gap: 1.5rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        gap: 1rem;
    }

    .cta {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }

    .feature {
        padding: 1.75rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* ===== Property Filters ===== */
.property-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--gradient-hero);
    border-color: var(--color-primary);
    color: #fff;
}

.add-property-btn {
    padding: 0.75rem 1.75rem;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-glow);
}

.add-property-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.add-property-btn span {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== Property Location Text ===== */
.property-location {
    font-size: 0.9rem !important;
    color: var(--color-accent) !important;
    margin-bottom: 0.5rem !important;
}

/* ===== Property Badge Variants ===== */
.property-badge.arriendo {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
}

.property-badge.venta {
    background: var(--gradient-gold);
}

/* ===== Delete Property Button ===== */
.delete-property {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: var(--transition-smooth);
    line-height: 1;
}

.property-card:hover .delete-property {
    opacity: 1;
}

.delete-property:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ===== Modal Overlay ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 41, 66, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-bounce);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc3545;
    border-color: #dc3545;
}

.modal-content h2 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    padding-right: 3rem;
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition-fast);
    background: var(--color-surface);
    color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* ===== Image Upload Area ===== */
.image-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--color-background);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--color-primary-light);
    background: rgba(30, 58, 95, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.upload-placeholder p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

.image-preview {
    position: relative;
    max-width: 100%;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #dc3545;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    line-height: 1;
}

.remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ===== Form Actions ===== */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-gold);
    border: none;
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

/* ===== Responsive Styles for New Components ===== */
@media (max-width: 768px) {
    .property-filters {
        gap: 0.75rem;
    }

    .filter-btn,
    .add-property-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .modal-content {
        padding: 1.75rem;
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .property-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn,
    .add-property-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .modal-content h2 {
        font-size: 1.25rem;
    }
}

/* ===== Image Count Badge ===== */
.image-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* ===== Clickable Gallery ===== */
.clickable-gallery {
    cursor: pointer;
    position: relative;
}

.clickable-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: var(--transition-smooth);
}

.clickable-gallery:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== Lightbox Gallery ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
    max-height: 70vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

.lightbox-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    max-width: 90vw;
}

.lightbox-thumb {
    width: 70px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--color-accent);
}

/* ===== Lightbox Responsive ===== */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-content {
        max-height: 60vh;
    }

    .lightbox-content img {
        max-height: 55vh;
    }

    .lightbox-thumb {
        width: 55px;
        height: 40px;
    }
}