/* ShahaR — modern realty card v1
   Scope: .shahar-realty-card only
   No global layout rules.
*/

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.shahar-realty-card {
    --shahar-ink: #17233d;
    --shahar-muted: #718096;
    --shahar-border: #e6eaf0;
    --shahar-soft: #f7f9fc;
    --shahar-accent: #1769e0;
    --shahar-success: #159447;
    --shahar-danger: #e5484d;
    max-width: 1240px;
    margin: 0 auto 40px;
    color: var(--shahar-ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    box-sizing: border-box;
}

.shahar-realty-card *,
.shahar-realty-card *::before,
.shahar-realty-card *::after {
    box-sizing: border-box;
}

.shahar-realty-card a {
    color: var(--shahar-accent);
    text-decoration: none;
}

.shahar-realty-card a:hover {
    text-decoration: none;
}

.shahar-card-topbar {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--shahar-border);
    margin-bottom: 18px;
}

.shahar-card-breadcrumb {
    color: var(--shahar-muted);
    font-size: 13px;
    font-weight: 500;
}

.shahar-card-separator {
    margin: 0 7px;
    color: #b4bdca;
}

.shahar-card-id {
    margin-left: 10px;
    color: #4b5b73;
}

.shahar-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shahar-card-actions .favblock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--shahar-border);
    border-radius: 10px;
    background: #fff;
    font-size: 18px;
}

.shahar-card-actions .favblock a:hover {
    border-color: #cdd6e3;
    background: var(--shahar-soft);
}

.shahar-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.shahar-admin-btn--edit {
    background: #fff4d6;
    color: #9a6b00 !important;
}

.shahar-admin-btn--delete {
    background: #ffe8e8;
    color: var(--shahar-danger) !important;
}

.shahar-card-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: stretch;
}

.shahar-card-gallery {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #edf1f5;
}

.shahar-card-gallery .fotorama {
    width: 100%;
}

.shahar-card-gallery .fotorama__stage {
    background: #f0f2f5;
}

.shahar-card-gallery .fotorama__stage__frame img {
    object-fit: cover;
}

.shahar-card-gallery-count {
    position: absolute;
    z-index: 5;
    left: 16px;
    bottom: 58px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(18, 27, 43, .78);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.shahar-card-no-photo {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f6;
}

.shahar-card-price-panel {
    padding: 26px;
    border: 1px solid var(--shahar-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(27, 45, 75, .07);
}

.shahar-card-price-label {
    color: var(--shahar-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.shahar-card-price {
    margin-top: 5px;
    color: var(--shahar-ink);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.025em;
}

.shahar-card-price span {
    font-size: 18px;
    font-weight: 500;
}

.shahar-card-price-period {
    margin-top: 5px;
    color: var(--shahar-muted);
    font-size: 15px;
}

.shahar-card-price-extra,
.shahar-card-price-note {
    margin-top: 7px;
    color: #5f6f86;
    font-size: 13px;
}

.shahar-card-old-price {
    margin-top: 10px;
    color: #9aa5b4;
    text-decoration: line-through;
    font-size: 13px;
}

.shahar-card-price--contract {
    font-size: 25px;
}

.shahar-card-main-facts {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--shahar-border);
}

.shahar-card-main-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f5;
}

.shahar-card-main-facts > div:last-child {
    border-bottom: 0;
}

.shahar-card-main-facts strong {
    font-size: 15px;
}

.shahar-card-main-facts span {
    color: var(--shahar-muted);
    font-size: 13px;
    text-align: right;
}

.shahar-contact-primary,
.shahar-contact-secondary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 18px;
    border-radius: 11px;
    font-weight: 600;
    text-align: center;
}

.shahar-contact-primary {
    background: var(--shahar-success);
    color: #fff !important;
}

.shahar-contact-primary:hover {
    background: #117c3a;
}

.shahar-contact-secondary {
    min-height: 42px;
    margin-top: 9px;
    border: 1px solid var(--shahar-border);
    background: #fff;
    color: var(--shahar-ink) !important;
}

.shahar-card-heading {
    padding: 26px 2px 18px;
}

.shahar-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.shahar-card-heading h1 {
    margin: 0;
    color: var(--shahar-ink);
    font-size: 31px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.025em;
}

.shahar-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    color: var(--shahar-muted);
    font-size: 12px;
    white-space: nowrap;
}

.shahar-card-address,
.shahar-card-metro {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: #40516b;
    font-size: 15px;
}

.shahar-card-address > i {
    color: var(--shahar-accent);
}

.shahar-address-muted {
    color: var(--shahar-muted);
}

.shahar-card-metro img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.shahar-card-metro strong {
    color: #263854;
}

.shahar-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.shahar-card-tags > span {
    padding: 6px 10px;
    border: 1px solid #e3e8ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #53637a;
    font-size: 12px;
    font-weight: 500;
}

.shahar-card-section {
    margin-top: 16px;
    padding: 22px;
    border: 1px solid var(--shahar-border);
    border-radius: 16px;
    background: #fff;
}

.shahar-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.shahar-section-heading h2 {
    margin: 0;
    color: var(--shahar-ink);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.015em;
}

.shahar-section-heading > span {
    color: var(--shahar-muted);
    font-size: 12px;
}

.shahar-keyfacts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.shahar-keyfact {
    min-height: 82px;
    padding: 10px 18px;
    border-right: 1px solid var(--shahar-border);
}

.shahar-keyfact:first-child {
    padding-left: 0;
}

.shahar-keyfact:last-child {
    border-right: 0;
}

.shahar-keyfact i {
    display: block;
    margin-bottom: 6px;
    color: var(--shahar-accent);
    font-size: 20px;
}

.shahar-keyfact strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.shahar-keyfact span {
    display: block;
    margin-top: 2px;
    color: var(--shahar-muted);
    font-size: 12px;
}

.shahar-card-description {
    color: #45556d;
    font-size: 15px;
    line-height: 1.75;
}

.shahar-description-badge,
.shahar-description-note {
    margin-top: 13px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #f7f9fc;
    color: #52627a;
    font-size: 13px;
}

.shahar-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

.shahar-spec-list ul.list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shahar-spec-list ul.list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 42px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f5;
}

.shahar-spec-list ul.list li > i,
.shahar-spec-list ul.list li > img,
.shahar-spec-list ul.list li > .glyphicon,
.shahar-spec-list ul.list li > span:first-child {
    color: #6c7d95;
}

.shahar-spec-list ul.list li label {
    margin: 0;
    color: #66768d;
    font-weight: 400;
}

.shahar-spec-list ul.list li > span:last-child {
    color: #263752;
    font-weight: 500;
    text-align: right;
}

.shahar-card-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.shahar-media-card {
    min-width: 0;
}

.shahar-map-box,
.shahar-video-box,
.shahar-pano360-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #edf1f5;
}

.shahar-map-box {
    height: 430px;
}

.shahar-map-box #YMapsID {
    width: 100%;
    height: 100%;
}

.shahar-video-box {
    aspect-ratio: 16 / 9;
}

.shahar-video-box iframe,
.shahar-pano360-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.shahar-pano360-box {
    min-height: 430px;
    aspect-ratio: 16 / 9;
}

.shahar-panorama-control {
    margin-top: 9px;
}

.shahar-panorama-control button {
    border-radius: 9px;
}

.shahar-panorama-viewer {
    display: none;
    width: 100%;
    height: 430px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 12px;
}

.shahar-map-info {
    margin-top: 10px;
    color: var(--shahar-muted);
    font-size: 12px;
}

.shahar-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.shahar-similar-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--shahar-border);
    border-radius: 12px;
    background: #fff;
}

.shahar-similar-image {
    display: block;
    height: 145px;
    background: #f1f3f6;
}

.shahar-similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shahar-similar-body {
    padding: 13px;
}

.shahar-similar-price {
    color: var(--shahar-ink);
    font-size: 17px;
    font-weight: 700;
}

.shahar-similar-title {
    display: block;
    margin-top: 4px;
    color: #344762 !important;
    font-size: 13px;
    font-weight: 600;
}

.shahar-similar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
    color: var(--shahar-muted);
    font-size: 12px;
}

.shahar-similar-address {
    display: block;
    margin-top: 9px;
    color: #6b7890 !important;
    font-size: 11px;
    line-height: 1.4;
}

.shahar-contact-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
}

.shahar-contact-modal .btn {
    min-width: 220px;
}

.shahar-contact-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    text-align: center;
}

.shahar-contact-person img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
}

.shahar-contact-person strong {
    font-size: 17px;
}

.shahar-contact-person span {
    color: var(--shahar-muted);
    font-size: 12px;
}

.shahar-card-notice {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #f0dca7;
    border-radius: 12px;
    background: #fff8e5;
    color: #6e5620;
}

@media (max-width: 991px) {
    .shahar-realty-card {
        margin-left: 12px;
        margin-right: 12px;
    }

    .shahar-card-hero {
        grid-template-columns: 1fr;
    }

    .shahar-card-price-panel {
        padding: 20px;
    }

    .shahar-keyfacts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shahar-keyfact:nth-child(2) {
        border-right: 0;
    }

    .shahar-keyfact:nth-child(n+3) {
        border-top: 1px solid var(--shahar-border);
    }

    .shahar-spec-list {
        grid-template-columns: 1fr;
    }

    .shahar-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .shahar-card-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 10px;
    }

    .shahar-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .shahar-card-title-row {
        flex-direction: column;
        gap: 8px;
    }

    .shahar-card-heading h1 {
        font-size: 25px;
    }

    .shahar-card-meta {
        justify-content: flex-start;
    }

    .shahar-card-section {
        padding: 17px;
        border-radius: 13px;
    }

    .shahar-keyfacts-grid,
    .shahar-card-media-grid,
    .shahar-similar-grid {
        grid-template-columns: 1fr;
    }

    .shahar-keyfact,
    .shahar-keyfact:nth-child(2) {
        border-right: 0;
        border-top: 1px solid var(--shahar-border);
        padding-left: 0;
    }

    .shahar-keyfact:first-child {
        border-top: 0;
    }

    .shahar-map-box {
        height: 340px;
    }

    .shahar-panorama-viewer {
        height: 340px;
    }

    .shahar-card-gallery-count {
        bottom: 48px;
    }

    .shahar-similar-image {
        height: 190px;
    }
}
