/* ==========================================================================
   ESTATEOS PROJECT DETAILS STYLESHEET
   Modern Luxury Real Estate Design System (Fully Mobile Responsive)
   ========================================================================== */

:root {
    --estate-primary: #2563eb;
    --estate-primary-hover: #1d4ed8;
    --estate-primary-light: #eff6ff;
    --estate-dark: #0f172a;
    --estate-slate: #1e293b;
    --estate-muted: #64748b;
    --estate-light: #f8fafc;
    --estate-green: #10b981;
    --estate-purple: #9333ea;
    --estate-border: #e2e8f0;
    --estate-border-light: #f1f5f9;
    --estate-card-bg: #ffffff;
    --estate-radius-lg: 20px;
    --estate-radius-md: 14px;
    --estate-radius-sm: 10px;
}

.estate-details-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-top: 24px;
    padding-bottom: 80px;
}

/* --------------------------------------------------------------------------
   1. Header Breadcrumbs & Action Bar
   -------------------------------------------------------------------------- */
.estate-details-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.estate-breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--estate-slate);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.estate-breadcrumb-back:hover {
    color: var(--estate-primary);
}

.estate-breadcrumb-back .back-arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--estate-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--estate-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.estate-breadcrumb-back:hover .back-arrow-icon {
    background: var(--estate-primary);
    color: #ffffff;
    border-color: var(--estate-primary);
}

.estate-breadcrumb-title {
    color: var(--estate-muted);
    font-weight: 500;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.estate-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.estate-action-pill-btn {
    height: 38px;
    padding: 0 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--estate-border);
    color: var(--estate-slate);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
}

.estate-action-pill-btn:hover {
    background: #f1f5f9;
    color: var(--estate-dark);
    border-color: #cbd5e1;
}

.estate-action-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--estate-border);
    color: var(--estate-slate);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
}

.estate-action-circle-btn:hover {
    background: #f1f5f9;
    color: var(--estate-dark);
}

/* --------------------------------------------------------------------------
   2. Media Showcase Gallery (Photos / Floor Plan / Video)
   -------------------------------------------------------------------------- */
.estate-media-showcase-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-lg);
    padding: 16px;
    margin-bottom: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    clear: both;
}

.estate-media-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.estate-media-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.estate-media-tab-btn {
    border: none;
    background: #f1f5f9;
    color: var(--estate-muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.estate-media-tab-btn:hover {
    background: #e2e8f0;
    color: var(--estate-dark);
}

.estate-media-tab-btn.active {
    background: var(--estate-dark);
    color: #ffffff;
}

.estate-mls-code {
    font-size: 11.5px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Asymmetric Gallery Grid */
.estate-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 12px;
    height: 460px;
    min-height: 460px;
    max-height: 460px;
}

.estate-main-photo-wrap {
    position: relative;
    height: 100%;
    width: 100%;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
}

.estate-main-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.estate-main-photo-wrap:hover .estate-main-photo-img {
    transform: scale(1.02);
}

.estate-photo-count-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.estate-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: 100%;
    width: 100%;
    min-height: 0;
}

.estate-thumb-item {
    position: relative;
    height: 100%;
    width: 100%;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all 0.2s ease;
}

.estate-thumb-item.active {
    border-color: var(--estate-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.estate-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.estate-thumb-item:hover .estate-thumb-img {
    transform: scale(1.04);
    opacity: 0.95;
}

.estate-thumb-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    z-index: 2;
}

/* Floor Plan & Map Tab Content */
.estate-media-tab-panel {
    display: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    height: 460px;
    min-height: 460px;
    max-height: 460px;
    border: 1px solid var(--estate-border);
}

.estate-media-tab-panel.active {
    display: block;
}

.estate-media-tab-panel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.estate-media-tab-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   3. Project Header Info & Key Metrics Card
   -------------------------------------------------------------------------- */
.estate-prop-main-info-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.estate-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.estate-badge-dark {
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 8px;
}

.estate-badge-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    text-transform: uppercase;
}

.estate-badge-green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.estate-badge-purple {
    background: #faf5ff;
    color: #9333ea;
    border: 1px solid #e9d5ff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
}

.estate-prop-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--estate-dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 10px;
}

.estate-prop-address {
    font-size: 14.5px;
    color: var(--estate-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.estate-price-display-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.estate-price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--estate-dark);
    letter-spacing: -0.03em;
    line-height: 1;
}

.estate-sqft-rate-pill {
    background: #eff6ff;
    color: var(--estate-primary);
    border: 1px solid #bfdbfe;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}

/* Key Metrics 4-Card Grid */
.estate-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.estate-metric-card {
    background: #f8fafc;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.estate-metric-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.estate-metric-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--estate-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.estate-metric-header i {
    font-size: 13px;
    color: var(--estate-primary);
}

.estate-metric-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 16px;
    font-weight: 800;
    color: var(--estate-dark);
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   4. Modular Section Cards (Overview, Unit Types, Amenities, Map)
   -------------------------------------------------------------------------- */
.estate-section-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.estate-section-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.estate-narrative-content {
    font-size: 14.5px;
    line-height: 1.75;
    color: #334155;
}

.estate-narrative-content p {
    margin-bottom: 14px;
}

/* Unit Types / Floor Configurations Grid */
.estate-units-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.estate-unit-card {
    background: #f8fafc;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.estate-unit-card:hover {
    background: #ffffff;
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.estate-unit-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--estate-border-light);
}

.estate-unit-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--estate-primary);
}

.estate-unit-badge {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--estate-dark);
    padding: 3px 10px;
    border-radius: 6px;
}

.estate-unit-specs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estate-unit-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}

.estate-unit-spec-row strong {
    color: var(--estate-dark);
    font-weight: 700;
}

/* Specifications / Amenities Grid */
.estate-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.estate-amenity-item {
    background: #f8fafc;
    border: 1px solid var(--estate-border-light);
    border-radius: var(--estate-radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--estate-dark);
    transition: all 0.2s ease;
}

.estate-amenity-item:hover {
    background: #ffffff;
    border-color: var(--estate-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.estate-amenity-item i.amenity-check {
    color: #16a34a;
    font-size: 16px;
    flex-shrink: 0;
}

/* Floor Plan Gallery Previews */
.estate-floorplan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.estate-floorplan-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.estate-floorplan-card:hover {
    border-color: var(--estate-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.estate-floorplan-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Location Intelligence & Map */
.estate-location-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.estate-location-stat-card {
    background: #f8fafc;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-md);
    padding: 16px;
    text-align: center;
}

.estate-location-score {
    font-size: 20px;
    font-weight: 800;
    color: var(--estate-primary);
    line-height: 1.2;
}

.estate-location-score.green {
    color: #16a34a;
}

.estate-location-score.purple {
    color: #9333ea;
}

.estate-location-score-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--estate-muted);
    margin-top: 4px;
}

.estate-map-embed-wrap {
    height: 320px;
    border-radius: var(--estate-radius-md);
    overflow: hidden;
    border: 1px solid var(--estate-border);
}

.estate-map-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   5. Sticky Developer / Broker & Inquiry Sidebar
   -------------------------------------------------------------------------- */
.estate-sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    z-index: 5;
}

.estate-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.estate-sidebar-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--estate-dark);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.estate-sidebar-card-subtitle {
    font-size: 12.5px;
    color: var(--estate-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.estate-form-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: block;
}

.estate-form-control {
    width: 100%;
    height: 42px;
    background: #f8fafc;
    border: 1px solid var(--estate-border);
    border-radius: var(--estate-radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--estate-dark);
    transition: all 0.2s ease;
    outline: none;
}

.estate-form-control:focus {
    background: #ffffff;
    border-color: var(--estate-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.estate-form-control {
    height: auto;
    min-height: 90px;
    resize: vertical;
}

.estate-btn-primary-gradient {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    border: none;
    border-radius: var(--estate-radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.estate-btn-primary-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

/* Developer / Broker Profile Strip */
.estate-agent-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: var(--estate-radius-md);
    margin-bottom: 16px;
}

.estate-agent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.estate-agent-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--estate-dark);
    margin-bottom: 2px;
}

.estate-agent-role {
    font-size: 11.5px;
    color: var(--estate-muted);
}

/* --------------------------------------------------------------------------
   6. Investment & Mortgage Calculator (Interactive)
   -------------------------------------------------------------------------- */
.estate-mortgage-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.estate-mortgage-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--estate-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.estate-mortgage-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--estate-primary);
    letter-spacing: -0.02em;
}

.estate-slider-group {
    margin-bottom: 16px;
}

.estate-slider-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12.5px;
}

.estate-slider-label {
    font-weight: 600;
    color: var(--estate-muted);
}

.estate-slider-val {
    font-weight: 800;
    color: var(--estate-dark);
}

.estate-range-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.estate-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--estate-primary);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.estate-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   7. Similar Developments / Projects Card Grid
   -------------------------------------------------------------------------- */
.estate-project-preview-card {
    background: #ffffff;
    border: 1px solid var(--estate-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.estate-project-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
    border-color: #93c5fd;
}

.estate-project-media-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.estate-card-status-badge {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 3;
}

.estate-card-featured-badge {
    background: rgba(147, 51, 234, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    z-index: 3;
}

.estate-card-price-value {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.estate-project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.estate-project-preview-card:hover .estate-project-thumb {
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   8. Responsive Overrides (Tablet & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .estate-gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        max-height: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .estate-main-photo-wrap {
        height: 320px;
    }

    .estate-thumbs-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        height: 75px;
        gap: 8px;
    }

    .estate-units-grid {
        grid-template-columns: 1fr;
    }

    .estate-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .estate-sticky-sidebar {
        position: static;
        margin-top: 20px;
    }

    .estate-media-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .estate-media-tabs::-webkit-scrollbar {
        display: none;
    }

    .estate-media-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .estate-details-wrapper {
        padding-top: 12px;
        padding-bottom: 50px;
    }

    .estate-details-action-bar {
        margin-bottom: 12px;
        gap: 10px;
    }

    .estate-breadcrumb-back {
        font-size: 13px;
    }

    .estate-breadcrumb-back .back-arrow-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .estate-action-pill-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .estate-action-circle-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .estate-media-showcase-card {
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .estate-media-top-bar {
        margin-bottom: 10px;
        gap: 6px;
    }

    .estate-media-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .estate-media-tabs::-webkit-scrollbar {
        display: none;
    }

    .estate-media-tab-btn {
        padding: 6px 12px;
        font-size: 11.5px;
        height: 32px;
        border-radius: 16px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .estate-main-photo-wrap {
        height: 240px;
        border-radius: 12px;
    }

    .estate-thumbs-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        height: 56px;
        gap: 6px;
    }

    .estate-thumb-item {
        border-radius: 8px;
    }

    .estate-thumb-more-overlay {
        font-size: 12px;
    }

    .estate-media-tab-panel {
        height: 240px;
        min-height: 0;
        max-height: none;
        border-radius: 12px;
    }

    .estate-prop-main-info-card,
    .estate-section-card,
    .estate-sidebar-card {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .estate-badges-row {
        gap: 6px;
        margin-bottom: 10px;
    }

    .estate-badge-dark,
    .estate-badge-blue,
    .estate-badge-green,
    .estate-badge-purple {
        font-size: 10px;
        padding: 3px 8px;
    }

    .estate-prop-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .estate-prop-address {
        font-size: 12.5px;
        margin-bottom: 14px;
    }

    .estate-price-display-box {
        gap: 8px;
        margin-bottom: 16px;
    }

    .estate-price-value {
        font-size: 24px;
    }

    .estate-sqft-rate-pill {
        font-size: 11.5px;
        padding: 3px 8px;
    }

    .estate-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .estate-metric-card {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .estate-metric-header {
        font-size: 10px;
    }

    .estate-metric-val {
        font-size: 14.5px;
    }

    .estate-section-eyebrow {
        font-size: 10.5px;
        margin-bottom: 12px;
    }

    .estate-narrative-content {
        font-size: 13.5px;
        line-height: 1.65;
    }

    .estate-amenities-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .estate-amenity-item {
        padding: 10px 12px;
        font-size: 12.5px;
    }

    .estate-floorplan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .estate-location-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 14px;
    }

    .estate-location-stat-card {
        padding: 10px 4px;
        border-radius: 10px;
    }

    .estate-location-score {
        font-size: 15px;
    }

    .estate-location-score-label {
        font-size: 10px;
    }

    .estate-map-embed-wrap {
        height: 220px;
        border-radius: 10px;
    }

    .estate-agent-strip {
        padding: 10px;
        gap: 10px;
        margin-bottom: 14px;
    }

    .estate-agent-avatar {
        width: 44px;
        height: 44px;
    }

    .estate-form-control {
        height: 38px;
        font-size: 12.5px;
    }

    .estate-btn-primary-gradient {
        height: 42px;
        font-size: 13px;
    }
}
