/* =========================================================
   Property Widgets CSS
   property.css — covers both query cards + single detail
   ========================================================= */

/* ════════════════════════════════════════════════════════
   PROPERTY QUERY WIDGET (card grid + tabs)
════════════════════════════════════════════════════════ */

.pq-wrapper {
    font-family: inherit;
}

/* ── Tabs ─────────────────────────────────────────────── */
.pq-tabs-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.pq-tabs {
    display: flex;
    gap: 48px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 14px;
    position: relative;
}

.pq-tab {
    font-size: 16px;
    font-weight: 400;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding-bottom: 4px;
    user-select: none;
}

.pq-tab.is-active {
    color: #b5865a;
}

/* Underline effect */
.pq-tab::before {
    content: '';
    position: absolute;
    bottom: -15px; /* Aligns with the border-bottom of .pq-tabs */
    left: 0;
    width: 0;
    height: 2px;
    background: #b5865a;
    transition: width 0.3s ease;
    z-index: 1;
}

.pq-tab.is-active::before {
    width: 100%;
}

.pq-tab:hover::before {
    width: 100%;
}

/* Dot indicator below active tab */
.pq-tab::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b5865a;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.pq-tab.is-active::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.pq-tab:hover::after {
    transform: translateX(-50%) scale(1.3);
    opacity: 1;
}

/* ── Grid ─────────────────────────────────────────────── */
.pq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: opacity 0.3s ease;
}

/* ── Card ─────────────────────────────────────────────── */
.pq-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pq-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.11);
    transform: translateY(-3px);
}

/* Image wrapper */
.pq-card-img-wrap {
    display: block;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
    background: #f0ede8;
}

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

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

/* Badge */
.pq-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b5865a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Body */
.pq-card-body {
    padding: 16px 20px 20px;
}

.pq-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.pq-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.pq-card-title a:hover {
    color: #b5865a;
}

.pq-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pq-dot {
    color: #b5865a;
    font-size: 8px;
}

.pq-card-status {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.pq-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #aaa;
    padding: 60px 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 991px) {
    .pq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .pq-grid {
        grid-template-columns: 1fr;
    }

    .pq-tabs {
        gap: 20px;
        flex-wrap: wrap;
    }

    .pq-tabs-wrap {
        justify-content: center;
    }
}

/* ════════════════════════════════════════════════════════
   PROPERTY SINGLE DETAIL WIDGET
════════════════════════════════════════════════════════ */

.ps-wrapper {
    font-family: inherit;
    color: #1a1a1a;
    max-width: 100%;
}

/* ── Header ───────────────────────────────────────────── */
.ps-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.ps-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #b5865a;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.ps-back-link:hover {
    opacity: 0.75;
}

.ps-header-right {
    text-align: right;
}

.ps-room-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 400;
    margin: 0 0 4px;
    color: #222;
}

.ps-room-meta {
    font-size: 14px;
    color: #777;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ps-sep {
    color: #b5865a;
    font-size: 10px;
}

/* ── Gallery Grid ─────────────────────────────────────── */
.ps-gallery-grid {
    display: grid;
    gap: 8px;
    height: 460px;
    margin-bottom: 48px;
    border-radius: 8px;
    overflow: hidden;
}

/* 1 image */
.ps-grid-count-1 {
    grid-template-columns: 1fr;
}

/* 2 images: left big, right col */
.ps-grid-count-2 {
    grid-template-columns: 1fr 1fr;
}

/* 4 images: exact layout from screenshot */
.ps-grid-count-4 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* 5 images: left big + 4 right */
.ps-grid-count-5 {
    grid-template-columns: 3fr 1fr 1fr;
}

.ps-gimg {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
}

.ps-gimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.ps-gimg:hover img {
    transform: scale(1.04);
}

/* Span rules */
.ps-grid-count-3 .ps-gimg-0,
.ps-grid-count-5 .ps-gimg-0 {
    grid-row: 1 / 3;
}

/* Specific spans for 4 images to match design */
.ps-grid-count-4 .ps-gimg-0 { grid-column: 1 / 2; grid-row: 1 / 3; }
.ps-grid-count-4 .ps-gimg-1 { grid-column: 2 / 4; grid-row: 1 / 2; }
.ps-grid-count-4 .ps-gimg-2 { grid-column: 2 / 3; grid-row: 2 / 3; }
.ps-grid-count-4 .ps-gimg-3 { grid-column: 3 / 4; grid-row: 2 / 3; }

/* ── About section ────────────────────────────────────── */
.ps-about-wrap {
    display: grid;
    grid-template-columns: 1fr 42%;
    gap: 60px;
    margin-bottom: 48px;
    align-items: start;
}

.ps-about-left {
    min-width: 0;
}

.ps-section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 24px;
    color: #333;
}

/* Amenities */
.ps-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 8px;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.ps-amenity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 8px 0;
    margin-right: 12px;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}

.ps-amenity-icon {
    display: flex;
    align-items: center;
    color: #222;
}

.ps-amenity-icon svg {
    stroke: #222;
}

/* Pricing */
.ps-pricing-block {
    margin-bottom: 32px;
}

.ps-price {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 400;
    color: #333;
    margin-bottom: 6px;
}

.ps-price-sub {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.ps-price-desc {
    color: #333;
    margin-top: 6px;
}

/* Description */
.ps-description {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

.ps-description p {
    margin: 0 0 12px;
}

/* Floor plan */
.ps-about-right {
    flex-shrink: 0;
    width: 100%;
}

.ps-floor-plan {
    width: 100%;
}

.ps-floor-plan img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* ── Slideshow ────────────────────────────────────────── */
.ps-slideshow-section {
    position: relative;
    margin-bottom: 60px;
    background: #f5f3f0;
}

.ps-swiper {
    overflow: hidden;
}

.ps-swiper .swiper-slide {
    height: 500px;
    overflow: hidden;
}

.ps-swiper .swiper-slide img,
.ps-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.ps-swiper .swiper-slide img {
    object-fit: cover;
}

.ps-swiper-bottom-wrap {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    gap: 32px;
}

.ps-swiper-nav {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.ps-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #aaa;
    background: transparent;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
}

.ps-nav-btn:hover {
    border-color: #333;
    color: #333;
}

.ps-swiper-line {
    flex-grow: 1;
    height: 1px;
    background: #ddd;
}

/* ── Contact ──────────────────────────────────────────── */
.ps-contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.ps-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    margin-bottom: 20px;
}

.ps-cinfo-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ps-cinfo-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ps-cinfo-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
}

.ps-cinfo-value:hover {
    color: #b5865a;
}

.ps-contact-address {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Hover image */
.ps-contact-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    max-width: 360px;
}

.ps-contact-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: opacity 0.45s ease;
}

.ps-ci-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.ps-contact-img-wrap:hover .ps-ci-normal {
    opacity: 0;
}

.ps-contact-img-wrap:hover .ps-ci-hover {
    opacity: 1;
}

/* Map */
.ps-contact-map {
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
}

.ps-contact-map iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .ps-about-wrap {
        grid-template-columns: 1fr;
    }

    .ps-floor-plan {
        width: 100%;
        max-width: 360px;
    }

    .ps-contact-section {
        grid-template-columns: 1fr;
    }

    .ps-contact-map {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .ps-gallery-grid {
        height: 300px;
    }

    .ps-grid-count-3,
    .ps-grid-count-4,
    .ps-grid-count-5 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .ps-grid-count-3 .ps-gimg-0,
    .ps-grid-count-4 .ps-gimg-0,
    .ps-grid-count-5 .ps-gimg-0 {
        grid-row: auto;
    }

    .ps-amenities {
        gap: 6px 0;
    }

    .ps-amenity {
        margin-right: 8px;
        padding-right: 8px;
        font-size: 13px;
    }

    .ps-header {
        flex-direction: column;
    }

    .ps-header-right {
        text-align: left;
    }

    .ps-room-meta {
        justify-content: flex-start;
    }

    .ps-contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ps-swiper .swiper-slide {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .ps-gallery-grid {
        height: 220px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .ps-contact-grid {
        grid-template-columns: 1fr;
    }
}