/* ========================================================================
   SE Real Estate — Premium Frontend Styles
   Modern, clean, production-grade real estate UI
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --sere-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sere-primary: #1e3a5f;
    --sere-primary-light: #2a5a8f;
    --sere-accent: #e8a838;
    --sere-accent-hover: #d49520;
    --sere-bg: #f7f8fa;
    --sere-card-bg: #ffffff;
    --sere-text: #1a1a2e;
    --sere-text-muted: #6b7280;
    --sere-border: #e5e7eb;
    --sere-radius: 12px;
    --sere-radius-sm: 8px;
    --sere-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --sere-shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
    --sere-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Wrapper ---- */
.sere-wrapper {
    font-family: var(--sere-font);
    color: var(--sere-text);
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ---- Filters Panel ---- */
.sere-filters-panel {
    background: var(--sere-card-bg);
    border: 1px solid var(--sere-border);
    border-radius: var(--sere-radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: var(--sere-shadow);
}

.sere-filters-header {
    margin-bottom: 20px;
}

.sere-filters-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sere-primary);
    margin: 0;
}

.sere-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.sere-filter-wide {
    grid-column: span 2;
}

.sere-filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sere-text-muted);
    margin-bottom: 6px;
}

.sere-input,
.sere-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--sere-border);
    border-radius: var(--sere-radius-sm);
    font-family: var(--sere-font);
    font-size: 0.925rem;
    color: var(--sere-text);
    background: #fff;
    transition: border-color var(--sere-transition), box-shadow var(--sere-transition);
    box-sizing: border-box;
}

.sere-input:focus,
.sere-select:focus {
    outline: none;
    border-color: var(--sere-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.sere-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.sere-filter-check {
    display: flex;
    align-items: flex-end;
}

.sere-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.925rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--sere-text) !important;
    padding: 10px 0;
}

.sere-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sere-primary);
}

.sere-filters-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.sere-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-family: var(--sere-font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--sere-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--sere-transition);
    line-height: 1.4;
}

.sere-btn-primary {
    background: var(--sere-primary);
    color: #fff;
}

.sere-btn-primary:hover {
    background: var(--sere-primary-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    text-decoration: none;
}

.sere-btn-outline {
    background: transparent;
    color: var(--sere-text-muted);
    border: 1.5px solid var(--sere-border);
}

.sere-btn-outline:hover {
    border-color: var(--sere-primary);
    color: var(--sere-primary);
    text-decoration: none;
}

.sere-btn-sm {
    padding: 7px 16px;
    font-size: 0.825rem;
    background: var(--sere-primary);
    color: #fff;
    border-radius: var(--sere-radius-sm);
}

.sere-btn-sm:hover {
    background: var(--sere-primary-light);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.sere-btn-block {
    width: 100%;
    justify-content: center;
}

/* ---- Results Count ---- */
.sere-results-count {
    font-size: 0.9rem;
    color: var(--sere-text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

/* ---- Empty State ---- */
.sere-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--sere-text-muted);
}

.sere-empty p {
    margin-top: 16px;
    font-size: 1.05rem;
}

/* ---- Card Grid ---- */
.sere-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

/* ---- Property Card ---- */
.sere-card {
    background: var(--sere-card-bg);
    border-radius: var(--sere-radius);
    overflow: hidden;
    border: 1px solid var(--sere-border);
    box-shadow: var(--sere-shadow);
    transition: transform var(--sere-transition), box-shadow var(--sere-transition);
    display: flex;
    flex-direction: column;
}

.sere-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sere-shadow-hover);
}

.sere-card-featured {
    border-color: var(--sere-accent);
    box-shadow: 0 0 0 1px var(--sere-accent), var(--sere-shadow);
}

.sere-card-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #eee;
}

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

.sere-card:hover .sere-card-img {
    transform: scale(1.05);
}

.sere-card-status {
    position: absolute;
    top: 14px;
    left: 14px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.4;
}

.sere-card-badge-featured {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--sere-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.4;
}

.sere-card-price {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 18px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sere-card-price small {
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.85;
}

.sere-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sere-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.35;
}

.sere-card-title a {
    color: var(--sere-text);
    text-decoration: none;
}

.sere-card-title a:hover {
    color: var(--sere-primary);
}

.sere-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--sere-text-muted);
    margin: 0 0 14px;
}

.sere-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sere-border);
}

.sere-spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--sere-text-muted);
    font-weight: 500;
}

.sere-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.sere-card-type {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sere-primary);
    background: rgba(30, 58, 95, 0.07);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ---- Pagination ---- */
.sere-pagination {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.sere-pagination .pagination {
    display: flex;
    list-style: none;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.sere-pagination .page-link {
    padding: 8px 14px;
    border-radius: var(--sere-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sere-text);
    border: 1px solid var(--sere-border);
    text-decoration: none;
}

.sere-pagination .page-item.active .page-link {
    background: var(--sere-primary);
    color: #fff;
    border-color: var(--sere-primary);
}

/* ==============================================================
   DETAIL PAGE
   ============================================================== */

.sere-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sere-primary);
    text-decoration: none;
    margin-bottom: 20px;
}

.sere-back-link:hover {
    text-decoration: underline;
    color: var(--sere-primary-light);
}

.sere-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.sere-detail-header-text {
    flex: 1;
    min-width: 280px;
}

.sere-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 10px 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.sere-detail-price-box {
    text-align: right;
    flex-shrink: 0;
}

.sere-detail-price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--sere-primary);
    letter-spacing: -0.02em;
}

.sere-detail-price-suffix {
    font-size: 0.9rem;
    color: var(--sere-text-muted);
    font-weight: 400;
}

.sere-detail-type-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sere-primary);
    background: rgba(30, 58, 95, 0.07);
    padding: 4px 12px;
    border-radius: 6px;
}

/* ---- Gallery ---- */
.sere-gallery {
    margin-bottom: 32px;
}

.sere-gallery-main {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: var(--sere-radius);
    overflow: hidden;
    background: #111;
}

.sere-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sere-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #111;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--sere-transition);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sere-gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.sere-gallery-prev { left: 16px; }
.sere-gallery-next { right: 16px; }

.sere-gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.sere-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sere-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--sere-radius-sm);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--sere-transition), border-color var(--sere-transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.sere-thumb:hover {
    opacity: 0.8;
}

.sere-thumb-active {
    opacity: 1;
    border-color: var(--sere-primary);
}

/* ---- Content Layout ---- */
.sere-detail-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: start;
}

.sere-specs-bar {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding: 24px 28px;
    background: var(--sere-card-bg);
    border: 1px solid var(--sere-border);
    border-radius: var(--sere-radius);
    margin-bottom: 28px;
    box-shadow: var(--sere-shadow);
}

.sere-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.sere-spec-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sere-primary);
}

.sere-spec-label {
    font-size: 0.78rem;
    color: var(--sere-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-top: 2px;
}

.sere-section {
    margin-bottom: 32px;
}

.sere-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sere-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sere-accent);
    display: inline-block;
}

.sere-description {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
}

.sere-address-full {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--sere-text-muted);
    margin-bottom: 16px;
}

.sere-map-container {
    border-radius: var(--sere-radius);
    overflow: hidden;
    border: 1px solid var(--sere-border);
}

.sere-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: var(--sere-bg);
    color: var(--sere-text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.sere-map-placeholder p {
    margin-top: 12px;
    max-width: 360px;
}

/* ---- Sidebar ---- */
.sere-agent-card,
.sere-inquiry-card {
    background: var(--sere-card-bg);
    border: 1px solid var(--sere-border);
    border-radius: var(--sere-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--sere-shadow);
}

/* AJAX success state */
.sere-inquiry-success {
    text-align: center;
    padding: 24px 16px;
}

.sere-inquiry-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d1fae5;
    color: #065f46;
    margin: 0 auto 16px;
}

.sere-inquiry-success-msg {
    font-size: 0.95rem;
    color: var(--sere-text);
    margin: 0;
    line-height: 1.5;
}

/* AJAX error banner */
.sere-inquiry-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: calc(var(--sere-radius) / 2);
    padding: 10px 14px;
    font-size: 0.875rem;
    margin-bottom: 14px;
}

/* Spinner animation */
@keyframes sere-spin {
    to { transform: rotate(360deg); }
}

.sere-spin {
    animation: sere-spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.sere-agent-card h3,
.sere-inquiry-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sere-primary);
}

.sere-agent-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sere-agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--sere-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sere-agent-avatar--photo {
    object-fit: cover;
    border: 2px solid var(--sere-border);
}

.sere-agent-bio {
    font-size: 0.85rem;
    color: var(--sere-text-muted);
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.5;
}

.sere-agent-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.sere-agent-detail {
    font-size: 0.85rem;
    color: var(--sere-text-muted);
}

.sere-form-group {
    margin-bottom: 14px;
}

.sere-form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--sere-text-muted);
    margin-bottom: 5px;
}

.sere-inquiry-form textarea.sere-input {
    resize: vertical;
    min-height: 100px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .sere-detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sere-filters-grid {
        grid-template-columns: 1fr;
    }

    .sere-filter-wide {
        grid-column: span 1;
    }

    .sere-grid {
        grid-template-columns: 1fr;
    }

    .sere-gallery-main {
        height: 280px;
    }

    .sere-detail-header {
        flex-direction: column;
    }

    .sere-detail-price-box {
        text-align: left;
    }

    .sere-detail-title {
        font-size: 1.35rem;
    }

    .sere-detail-price {
        font-size: 1.5rem;
    }

    .sere-specs-bar {
        gap: 20px;
        padding: 18px 20px;
    }

    .sere-filters-panel {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .sere-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sere-card-img-wrap {
        height: 200px;
    }
}

/* ── Amenities grid ─────────────────────────────────────────────────── */
.sere-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 16px;
}

.sere-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--sere-badge-text);
    padding: 8px 12px;
    background: var(--sere-badge-bg);
    border: none;
    border-radius: var(--sere-radius-sm);
}

.sere-amenity-icon {
    color: var(--sere-badge-text);
    flex-shrink: 0;
    font-size: 1rem;
}

/* ── Amenity filter checkboxes ──────────────────────────────────────────── */
.sere-filter-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--sere-text-muted, #6b7280);
    margin-bottom: .5rem;
}

.sere-amenity-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
}

.sere-amenity-checkboxes .sere-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 2rem;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
    white-space: nowrap;
}

.sere-amenity-checkboxes .sere-checkbox-label:hover {
    border-color: #6366f1;
    color: #4f46e5;
    background: #f5f3ff;
}

.sere-amenity-checkboxes .sere-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.sere-amenity-checkboxes .sere-checkbox-label:has(input:checked) {
    border-color: #4f46e5;
    background: #4f46e5;
    color: #fff;
}

/* ── Hero Banner ──────────────────────────────────────────────────────────── */
.sere-hero {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center; /* overridden by inline style from admin settings */
    margin-bottom: 0;
}

.sere-hero-overlay {
    position: absolute;
    inset: 0;
}

.sere-hero-content {
    position: relative;
    z-index: 1;
    /* text-align, padding and max-width set by inline styles from admin */
    box-sizing: border-box;
}

.sere-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.sere-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .sere-hero { min-height: 200px; }
    .sere-hero-content { padding: 16px; }
}

/* ── Layer control — match zoom button size ─────────────────────────────── */
.leaflet-control-layers-toggle {
    width: 26px !important;
    height: 26px !important;
    background-size: 16px 16px !important;
}

.leaflet-touch .leaflet-control-layers-toggle {
    width: 30px !important;
    height: 30px !important;
}

.leaflet-control-layers {
    border-radius: 4px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4) !important;
}

.leaflet-control-layers-expanded {
    padding: 4px 8px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    min-width: 100px !important;
}

/* ── Mortgage Calculator ─────────────────────────────────────────────────── */
.sere-mortgage-card {
    background: var(--sere-card-bg, #fff);
    border: 1px solid var(--sere-border, #e5e7eb);
    border-radius: var(--sere-radius, 12px);
    padding: 24px;
    margin-top: 20px;
    box-shadow: var(--sere-shadow, 0 1px 4px rgba(0,0,0,0.06));
}

.sere-mortgage-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sere-heading, #1a1a2e);
}

.sere-mortgage-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sere-mortgage-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sere-mortgage-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sere-text-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sere-mortgage-pct {
    font-weight: 400;
    font-size: 0.78rem;
    background: #f3f4f6;
    padding: 1px 7px;
    border-radius: 10px;
    color: #374151;
}

.sere-mortgage-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--sere-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
}

.sere-mortgage-input-wrap:focus-within {
    border-color: var(--sere-accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.sere-mortgage-sym {
    padding: 0 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border-right: 1px solid var(--sere-border, #e5e7eb);
    line-height: 38px;
    white-space: nowrap;
}

.sere-mortgage-sym--right {
    border-right: none;
    border-left: 1px solid var(--sere-border, #e5e7eb);
}

.sere-mortgage-input {
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
    min-width: 0;
}

.sere-mortgage-input--no-sym {
    padding-left: 12px;
}

/* Remove browser spinners */
.sere-mortgage-input::-webkit-outer-spin-button,
.sere-mortgage-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sere-mortgage-input[type=number] { -moz-appearance: textfield; }

.sere-mortgage-result {
    background: linear-gradient(135deg, var(--sere-accent, #2563eb), #1d4ed8);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-top: 4px;
}

.sere-mortgage-result-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
}

.sere-mortgage-result-amount {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.sere-mortgage-result-detail {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    margin-top: 8px;
    line-height: 1.6;
}

.sere-mortgage-disclaimer {
    font-size: 0.72rem;
    color: var(--sere-text-muted, #9ca3af);
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* ── Virtual Tour ────────────────────────────────────────────────────────── */
.sere-tour-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.sere-tour-wrap iframe {
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* ── Share & Print bar ───────────────────────────────────────────────────── */
.sere-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--sere-border, #e5e7eb);
}

.sere-share-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sere-text-muted, #6b7280);
}

.sere-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sere-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--sere-badge-bg);
    color: var(--sere-badge-text);
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}

.sere-share-btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; color: var(--sere-badge-text); }

/* Print styles */
@media print {
    .sere-share-bar,
    .sere-inquiry-card,
    .sere-mortgage-card,
    .sere-similar-section,
    #sere-chat-bubble,
    #sere-chat-panel,
    .sere-map-container,
    nav, header, footer { display: none !important; }

    .sere-detail-content { display: block !important; }
    .sere-detail-main    { width: 100% !important; max-width: 100% !important; }
    .sere-gallery-main   { max-height: 300px !important; }
    body { font-size: 12pt; }
    a[href]:after { content: none !important; }
}

/* ── Similar Properties ──────────────────────────────────────────────────── */
.sere-similar-section {
    max-width: 1320px;
    margin: 40px auto 0;
    padding: 0 16px 48px;
}

.sere-similar-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--sere-heading, #1a1a2e);
}

.sere-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .sere-similar-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sere-similar-grid { grid-template-columns: repeat(2, 1fr); }
}

.sere-sim-card {
    display: flex;
    flex-direction: column;
    background: var(--sere-card-bg, #fff);
    border: 1px solid var(--sere-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.sere-sim-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.sere-sim-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.sere-sim-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sere-sim-card:hover .sere-sim-img { transform: scale(1.04); }

.sere-sim-img-placeholder {
    width: 100%; height: 100%;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
}

.sere-sim-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
    text-transform: uppercase;
}

.sere-sim-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }

.sere-sim-title {
    font-weight: 700; font-size: 0.9rem;
    color: var(--sere-heading, #1a1a2e);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sere-sim-price { font-size: 1rem; font-weight: 800; color: var(--sere-accent, #2563eb); }

.sere-sim-meta {
    display: flex; flex-wrap: wrap; gap: 4px 10px;
    font-size: 0.78rem; color: #6b7280;
}

/* ── Saved Searches page ─────────────────────────────────────────────────── */
.sere-saved-searches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.sere-saved-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--sere-card-bg, #fff);
    border: 1px solid var(--sere-border, #e5e7eb);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--sere-shadow);
    transition: opacity 0.3s;
}

.sere-saved-search-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--sere-heading, #1a1a2e);
    margin-bottom: 6px;
}

.sere-saved-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.sere-saved-search-tag {
    background: #f3f4f6;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.sere-saved-search-date {
    font-size: 0.78rem;
    color: var(--sere-text-muted, #6b7280);
}

.sere-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.sere-btn-danger:hover {
    background: #fecaca;
}

/* ── Radius row ──────────────────────────────────────────────────────────── */
.sere-radius-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── Save search button ──────────────────────────────────────────────────── */
.sere-map-btn--save {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.sere-map-btn--save:hover {
    background: #dcfce7;
}

/* ── Hero full-width variant ─────────────────────────────────────────────── */
.sere-hero--fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
