.nexa-single-shell {
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 20px 60px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
}
.nexa-single-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}
.nexa-property-ref {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}
.nexa-single-eyebrow {
    display: inline-flex;
    gap: 10px;
    font-size: 12px;
    color: #6366f1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.nexa-single-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}
.nexa-single-title {
    font-size: clamp(26px, 4vw, 34px);
    margin: 0;
    line-height: 1.15;
}
.nexa-single-price {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 12px 18px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 14px 40px rgba(79, 70, 229, 0.15);
    white-space: nowrap;
}
.nexa-single-subline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #475569;
}
.nexa-single-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 999px;
    color: #0f172a;
    font-weight: 600;
    font-size: 12px;
}
.nexa-single-gallery {
    background: #ffffff;
    border-radius: 5px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}
.nexa-gallery-main {
    position: relative;
    padding-top: 56.25%;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(120deg, #e2e8f0, #f8fafc);
}
.nexa-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.28s ease-in-out;
}
.nexa-gallery-slide.is-active {
    opacity: 1;
}
.nexa-gallery-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 8px;
}
.nexa-gallery-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.54);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nexa-gallery-btn:hover {
    background: rgba(79, 70, 229, 0.9);
    transform: translateY(-1px);
}
.nexa-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.nexa-gallery-thumbs img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.nexa-gallery-thumbs img.is-active {
    opacity: 1;
    border-color: #4f46e5;
    transform: translateY(-1px);
}
.nexa-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.nexa-detail-card {
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}
.nexa-detail-label {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.nexa-detail-value {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.nexa-description {
    background: #ffffff;
    border-radius: 5px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.nexa-description h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}
.nexa-description p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}
.nexa-single-error {
    padding: 14px 16px;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 5px;
    border: 1px solid #fecaca;
}
.nexa-floor-plans {
    background: #ffffff;
    border-radius: 5px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-top: 24px;
}
.nexa-floor-plans h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 18px;
}
.nexa-floor-plans-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nexa-floor-plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}
.nexa-floor-plan-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.nexa-floor-plan-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.nexa-floor-plan-label {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}
.nexa-floor-plan-action {
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 5px;
    transition: background 0.2s ease;
}
.nexa-floor-plan-item:hover .nexa-floor-plan-action {
    background: rgba(79, 70, 229, 0.2);
}
/* Amenities Section */
.nexa-amenities {
    background: #ffffff;
    border-radius: 5px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-top: 24px;
    margin-bottom: 24px;
}
.nexa-amenities h2,
.nexa-amenities h3 {
    font-size: 18px;
    margin: 0 0 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nexa-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.nexa-amenity-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}
.nexa-amenity-badge:hover {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

/* Layout-specific amenities styling */
/* Amenities within compact tab content */
.nexa-compact-tab-content .nexa-amenities {
    background: transparent;
    box-shadow: none;
    padding: 20px 0 0;
    margin-bottom: 0;
}

/* Amenities within minimal layout */
.nexa-minimal-card .nexa-amenities {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Amenities within modern section already styled by parent */
.nexa-modern-section.nexa-amenities {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 32px;
}

/* Amenities within elegant section already styled by parent */
.nexa-elegant-description-section.nexa-amenities {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Amenities within bold section already styled by parent */
.nexa-bold-description-section.nexa-amenities {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 720px) {
    .nexa-single-shell {
        margin-top: 20px;
        padding: 0 12px 40px;
    }
    .nexa-single-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .nexa-single-price {
        width: 100%;
    }
    .nexa-amenity-badge {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    /* Improve gallery for mobile viewing */
    .nexa-single-gallery {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .nexa-gallery-main {
        padding-top: 75%;  /* Increase height ratio for mobile */
        border-radius: 8px;
    }
    
    .nexa-gallery-slide {
        object-fit: contain;  /* Show full image on mobile instead of cropping */
        background: #000;
    }
    
    .nexa-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        margin-top: 10px;
    }
    
    .nexa-gallery-thumbs img {
        height: 70px;
    }
    
    .nexa-gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Even better image display on very small screens */
    .nexa-gallery-main {
        padding-top: 85%;  /* Even taller on very small screens */
    }
    
    .nexa-single-gallery {
        padding: 8px;
        border-radius: 8px;
    }
    
    .nexa-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .nexa-gallery-thumbs img {
        height: 60px;
        border-radius: 6px;
    }
    
    .nexa-single-title {
        font-size: 22px;
    }
    
    .nexa-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Agent Section Styles */
.nexa-agent-section {
    background: #ffffff;
    border-radius: 5px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-top: 24px;
}

.nexa-agent-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #0f172a;
}

.nexa-agent-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.nexa-agent-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.nexa-agent-photo {
    flex-shrink: 0;
}

.nexa-agent-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    border: 3px solid #f8fafc;
    background: #f8fafc;
}

.nexa-agent-details {
    flex: 1;
}

.nexa-agent-name {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.nexa-agent-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
    color: #475569;
}

.nexa-agent-icon {
    font-size: 16px;
}

.nexa-agent-contact a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nexa-agent-contact a:hover {
    color: #4338ca;
    text-decoration: underline;
}

.nexa-agent-form-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.nexa-agent-form-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.nexa-agent-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nexa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nexa-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nexa-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.nexa-form-field input,
.nexa-form-field textarea {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nexa-form-field input:focus,
.nexa-form-field textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.nexa-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.nexa-form-submit {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nexa-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.nexa-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.nexa-form-message {
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.nexa-form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.nexa-form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 968px) {
    .nexa-agent-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .nexa-agent-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nexa-agent-contact {
        justify-content: center;
    }
    
    .nexa-form-row {
        grid-template-columns: 1fr;
    }
    
    .nexa-agent-section {
        padding: 16px;
    }
    
    .nexa-agent-form-container {
        padding: 16px;
    }
}

/* Agent Section Notice (when no data available) */
.nexa-agent-notice {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
    margin-top: 12px;
}

.nexa-agent-notice strong {
    color: #92400e;
    font-size: 15px;
}

.nexa-agent-notice p {
    margin: 0;
    color: #92400e;
    line-height: 1.5;
}

.nexa-agent-notice code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.nexa-agent-notice details {
    border-top: 1px solid #fcd34d;
    padding-top: 12px;
}

.nexa-agent-notice details summary {
    font-weight: 600;
    color: #78350f;
}

.nexa-agent-notice details summary:hover {
    color: #92400e;
}
