/* SS RealState — public site enhancements */

/* Hide icons inside public buttons */
.qbutton .qode_button_icon_element,
.qbutton i,
.qbutton .fa,
.qbutton [class*="kiko"],
.rev-btn [class*="kiko"],
.qode-rev-slider-button [class*="kiko"] {
    display: none !important;
}

:root {
    --ss-gold: #c9a962;
    --ss-gold-light: #e8d5a3;
    --ss-dark: #1a1a1a;
    --ss-muted: #6b6b6b;
    --ss-bg: #f8f6f2;
    --ss-card: #ffffff;
    --ss-border: rgba(201, 169, 98, 0.25);
    --ss-shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
    --ss-radius: 14px;
}

/* ── Listings page ── */
.ss-listings-page {
    background: var(--ss-bg);
    min-height: 60vh;
    padding-bottom: 80px;
}

.ss-page-hero {
    background: linear-gradient(135deg, var(--ss-dark) 0%, #2d2a26 100%);
    color: #fff;
    padding: 56px 24px 48px;
    text-align: center;
    margin-bottom: 40px;
}

.ss-page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 8px;
    font-weight: 400;
}

.ss-page-hero p {
    color: var(--ss-gold-light);
    margin: 0;
    font-size: 15px;
}

.ss-listings-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ss-listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 600px) {
    .ss-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ss-listings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.ss-listings-loader {
    text-align: center;
    padding: 32px;
    color: var(--ss-muted);
    font-size: 14px;
}

.ss-listings-loader.is-loading::after {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-inline-start: 10px;
    border: 2px solid var(--ss-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: ssSpin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes ssSpin {
    to { transform: rotate(360deg); }
}

.ss-listings-end {
    text-align: center;
    padding: 24px;
    color: var(--ss-muted);
    font-size: 13px;
}

/* ── Property card ── */
.ss-property-card {
    background: var(--ss-card);
    border-radius: var(--ss-radius);
    overflow: hidden;
    box-shadow: var(--ss-shadow);
    border: 1px solid var(--ss-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ss-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(26, 26, 26, 0.12);
}

.ss-property-card__link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.ss-property-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 3px solid var(--ss-gold);
}

.ss-property-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ss-property-card:hover .ss-property-card__media img {
    transform: scale(1.04);
}

/* Shine effect */
.ss-property-card__media::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 70%
    );
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
}

.ss-property-card__media.ss-shine-active::after {
    animation: ssShine 0.9s ease forwards;
}

@keyframes ssShine {
    0%   { left: -120%; opacity: 0; }
    20%  { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

.ss-property-card__body {
    padding: 20px 22px 24px;
}

.ss-property-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ss-gold);
    background: rgba(201, 169, 98, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.ss-property-card__body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: var(--ss-dark);
    line-height: 1.35;
}

.ss-property-card__summary {
    font-size: 13px;
    color: var(--ss-muted);
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ss-property-card__price {
    font-size: 15px;
    font-weight: 600;
    color: var(--ss-dark);
    border-top: 1px solid var(--ss-border);
    padding-top: 14px;
}

/* ── Property show page ── */
.ss-property-show {
    background: var(--ss-bg);
}

.ss-property-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.ss-property-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.15) 100%);
}

.ss-property-hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    width: 100%;
    color: #fff;
}

.ss-property-hero__type {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ss-gold-light);
    margin-bottom: 8px;
}

.ss-property-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 12px;
    font-weight: 400;
}

.ss-property-hero__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ss-gold-light);
}

.ss-property-main {
    max-width: 1200px;
    margin: -32px auto 0;
    padding: 0 20px 64px;
    position: relative;
    z-index: 2;
}

.ss-property-panel {
    background: var(--ss-card);
    border-radius: var(--ss-radius);
    box-shadow: var(--ss-shadow);
    border: 1px solid var(--ss-border);
    padding: 32px;
    margin-bottom: 28px;
}

.ss-property-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0 0 20px;
    color: var(--ss-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ss-gold);
    display: inline-block;
}

.ss-property-summary {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ss-muted);
}

.ss-property-compose {
    font-size: 15px;
    line-height: 1.85;
    color: #444;
}

.ss-option-group {
    margin-bottom: 28px;
}

.ss-option-group h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ss-gold);
    margin: 0 0 16px;
}

.ss-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
}

@media (min-width: 600px) {
    .ss-options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .ss-options-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 20px;
    }
}

.ss-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    background: transparent;
    transition: background 0.2s ease;
}

.ss-option-card:hover {
    background: rgba(248, 246, 242, 0.9);
}

.ss-option-card__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.ss-option-card__icon img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: contrast(1.05);
}

.ss-option-card__icon i {
    font-size: 36px;
    color: #333;
}

.ss-option-card__title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
    min-height: 2.8em;
}

.ss-option-card__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--ss-dark);
    direction: ltr;
    unicode-bidi: embed;
}

/* legacy horizontal option item (kept for compatibility) */
.ss-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--ss-bg);
    border-radius: 10px;
    border: 1px solid var(--ss-border);
}

.ss-option-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--ss-border);
}

.ss-option-item__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ss-option-item__icon i {
    font-size: 18px;
    color: var(--ss-gold);
}

.ss-option-item__label {
    display: inline;
    font-size: 13px;
    color: var(--ss-muted);
    margin-bottom: 0;
}

.ss-option-item__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    direction: rtl;
}

.ss-option-item__value {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    color: var(--ss-dark);
    direction: ltr;
    unicode-bidi: embed;
}

.ss-property-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .ss-property-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ss-property-gallery__item {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--ss-border);
    aspect-ratio: 4/3;
}

.ss-property-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-similar-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.ss-similar-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 32px;
    color: var(--ss-dark);
}

.ss-similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .ss-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ss-similar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Home page image frames */
.ss-framed-image {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--ss-gold);
    border-radius: var(--ss-radius);
    box-shadow: var(--ss-shadow);
}

.ss-framed-image.ss-property-card__media::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
}

.ss-framed-image.ss-shine-active::after {
    animation: ssShine 0.9s ease forwards;
}

/* Menu highlight for sale/rent */
nav.main_menu .ss-menu-sale a,
nav.main_menu .ss-menu-rent a {
    font-weight: 600;
}

nav.main_menu .ss-menu-sale a span,
nav.main_menu .ss-menu-rent a span {
    color: var(--ss-gold, #c9a962);
}

/* Property gallery — Swiper horizontal strip */
.ss-gallery-thumbs {
    width: 100%;
    padding: 8px 0 4px;
}

.ss-gallery-thumbs .swiper-slide {
    width: 220px;
}

.ss-gallery-thumb {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--ss-border);
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ss-gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--ss-gold);
}

.ss-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ss-gallery-lightbox[hidden] {
    display: none !important;
}

.ss-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.ss-gallery-main {
    position: relative;
    z-index: 2;
    width: min(1100px, 96vw);
    height: min(78vh, 720px);
}

.ss-gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

.ss-gallery-main .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ss-gallery-lightbox__close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.ss-lightbox-open,
body.ss-modal-open {
    overflow: hidden;
}

/* Visit request */
.ss-visit-actions {
    margin-top: 24px;
    text-align: center;
}

.ss-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ss-gold), #b8943f);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(201, 169, 98, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(201, 169, 98, 0.45);
}

.ss-visit-btn.is-cancel-mode {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 10px 24px rgba(71, 85, 105, 0.25);
}

.ss-visit-btn--submit {
    min-width: 120px;
}

.ss-visit-btn--ghost {
    background: #fff;
    color: var(--ss-dark);
    border: 1px solid var(--ss-border);
    box-shadow: none;
}

.ss-visit-feedback {
    margin-top: 12px;
    font-size: 14px;
}

.ss-visit-feedback.is-success {
    color: #059669;
}

.ss-visit-feedback.is-error {
    color: #dc2626;
}

/* Modal */
.ss-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ss-modal[hidden] {
    display: none !important;
}

.ss-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
}

.ss-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.ss-modal__dialog h3 {
    margin: 0 0 6px;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
}

.ss-modal__subtitle {
    margin: 0 0 18px;
    color: var(--ss-muted);
    font-size: 13px;
}

.ss-modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--ss-muted);
    cursor: pointer;
}

.ss-visit-form .ss-form-field {
    margin-bottom: 14px;
}

.ss-visit-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
}

.ss-visit-form .form-control {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid var(--ss-border);
    padding: 8px 12px;
}

.ss-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* Captcha */
.ss-captcha-field {
    margin-bottom: 14px;
}

.ss-captcha-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
}

.ss-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ss-captcha-input {
    flex: 1;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid var(--ss-border);
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ss-captcha-refresh {
    border: 1px solid var(--ss-border);
    border-radius: 8px;
    padding: 0;
    background: #f8fafc;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.ss-captcha-image {
    display: block;
    width: 140px;
    height: 44px;
}

.ss-property-compose {
    line-height: 1.85;
    color: #444;
}

.ss-property-compose img {
    max-width: 100%;
    height: auto;
}
