/**
 * WHC Real Estate - Frontend Styles
 */

/* ===========================================
   PROPERTY FIELD WIDGET
   =========================================== */
.whc-property-field {
    display: block;
}

.whc-field-value-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whc-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whc-field-icon svg {
    width: 1em;
    height: 1em;
}

.whc-field-label {
    margin-bottom: 4px;
}

.whc-field-prefix,
.whc-field-suffix {
    opacity: 0.7;
}

/* Floorplans field should behave like a full-width block, not inline-flex */
.whc-field-floorplans .whc-field-value-wrapper {
    display: block;
}

/* Floorplans 2-column grid (50% / 50%) */
.whc-floorplans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.whc-floorplan-item {
    width: 100%;
}

.whc-floorplan-image {
    width: 100%;
    height: auto;
    display: block;
}

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

/* Image Field */
.whc-property-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   PROPERTY GALLERY WIDGET - FULLY CUSTOMIZABLE
   =========================================== */
.whc-property-gallery.whc-gallery-widget {
    position: relative;
    width: 100%;
}

/* Split Layout (Main left + Thumbs right) */
.whc-gallery-split {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.whc-gallery-split.whc-split-reverse {
    flex-direction: row-reverse;
}

/* Main image wrapper */
.whc-gallery-main-wrapper {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.whc-gallery-main-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Thumbnails wrapper - vertical column */
.whc-gallery-thumbs-wrapper {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Thumbnails grid - horizontal */
.whc-gallery-thumbs-grid {
    display: grid;
    width: 100%;
}

/* Main Bottom Layout */
.whc-gallery-main-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Thumbnail item */
.whc-gallery-thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.whc-gallery-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.whc-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

/* Grid item */
.whc-gallery-item {
    position: relative;
    overflow: hidden;
}

.whc-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.whc-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Navigation */
.whc-gallery-nav {
    position: absolute;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.whc-nav-bottom-right {
    bottom: 20px;
    right: 20px;
}

.whc-nav-bottom-left {
    bottom: 20px;
    left: 20px;
}

.whc-nav-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.whc-nav-middle-sides {
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    justify-content: space-between;
}

.whc-nav-top-right {
    top: 20px;
    right: 20px;
}

.whc-nav-top-left {
    top: 20px;
    left: 20px;
}

.whc-gallery-prev,
.whc-gallery-next {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whc-gallery-prev svg,
.whc-gallery-next svg {
    transition: fill 0.3s ease;
}

/* Counter */
.whc-gallery-counter {
    position: absolute;
    z-index: 10;
    font-weight: 600;
}

.whc-counter-bottom-left {
    bottom: 20px;
    left: 20px;
}

.whc-counter-bottom-right {
    bottom: 20px;
    right: 20px;
}

.whc-counter-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.whc-counter-top-left {
    top: 20px;
    left: 20px;
}

.whc-counter-top-right {
    top: 20px;
    right: 20px;
}

.whc-counter-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Hover Effects - Main */
.whc-main-hover-zoom .whc-gallery-main-wrapper:hover img {
    transform: scale(1.05);
}

.whc-main-hover-brightness .whc-gallery-main-wrapper:hover img {
    filter: brightness(1.1);
}

.whc-main-hover-grayscale .whc-gallery-main-wrapper img {
    filter: grayscale(100%);
}

.whc-main-hover-grayscale .whc-gallery-main-wrapper:hover img {
    filter: grayscale(0%);
}

.whc-main-hover-blur .whc-gallery-main-wrapper img {
    filter: blur(2px);
}

.whc-main-hover-blur .whc-gallery-main-wrapper:hover img {
    filter: blur(0);
}

/* Hover Effects - Thumbnails */
.whc-thumb-hover-zoom .whc-gallery-thumb:hover img {
    transform: scale(1.1);
}

.whc-thumb-hover-brightness .whc-gallery-thumb:hover img {
    filter: brightness(1.15);
}

.whc-thumb-hover-lift .whc-gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Slider Layout */
.whc-gallery-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.whc-gallery-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.whc-gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.whc-gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.whc-gallery-slider-wrapper .whc-gallery-prev {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.whc-gallery-slider-wrapper .whc-gallery-next {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.whc-gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.whc-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whc-gallery-dot.active,
.whc-gallery-dot:hover {
    background: #ec6907;
}

/* Responsive */
@media (max-width: 768px) {
    .whc-gallery-split,
    .whc-gallery-split.whc-split-reverse {
        flex-direction: column;
        height: auto !important;
    }
    
    .whc-gallery-split .whc-gallery-main-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/10;
    }
    
    .whc-gallery-split .whc-gallery-thumbs-wrapper {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100% !important;
        height: auto !important;
        padding: 8px 0;
    }
    
    .whc-gallery-split .whc-gallery-thumb {
        flex-shrink: 0;
        width: 100px !important;
        height: 70px !important;
    }
}

/* ===========================================
   OLD PROPERTY GALLERY WIDGET (LEGACY)
   =========================================== */
.whc-property-gallery {
    position: relative;
}

/* Grid Layout */
.whc-gallery-grid {
    display: grid;
    gap: 10px;
}

.whc-gallery-item {
    position: relative;
    overflow: hidden;
}

.whc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Effects */
.whc-hover-zoom .whc-gallery-item:hover img,
.whc-hover-zoom .whc-gallery-main:hover img {
    transform: scale(1.05);
}

.whc-hover-brightness .whc-gallery-item:hover img {
    filter: brightness(1.1);
}

/* Main + Thumbs Layout */
.whc-layout-main-thumbs .whc-gallery-main {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.whc-layout-main-thumbs .whc-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whc-gallery-thumbs {
    display: grid;
    gap: 8px;
}

.whc-gallery-thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.whc-gallery-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s ease;
    z-index: 1;
}

.whc-gallery-thumb:hover,
.whc-gallery-thumb.active {
    opacity: 1;
}

.whc-gallery-thumb:hover::before,
.whc-gallery-thumb.active::before {
    background: transparent;
}

.whc-gallery-thumb.active {
    outline: 3px solid #ec6907;
    outline-offset: -3px;
}

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

/* Gallery Navigation */
.whc-gallery-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.whc-gallery-prev,
.whc-gallery-next {
    width: 48px;
    height: 48px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whc-gallery-prev:hover,
.whc-gallery-next:hover {
    background: #ec6907;
}

.whc-gallery-prev svg,
.whc-gallery-next svg {
    width: 24px;
    height: 24px;
    fill: #1a1d26;
    transition: fill 0.3s ease;
}

.whc-gallery-prev:hover svg,
.whc-gallery-next:hover svg {
    fill: #fff;
}

/* Gallery Counter */
.whc-gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

/* Slider Layout */
.whc-gallery-slider {
    position: relative;
    overflow: hidden;
}

.whc-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.whc-slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.whc-slider-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.whc-slider-prev,
.whc-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.whc-slider-prev {
    left: 16px;
}

.whc-slider-next {
    right: 16px;
}

.whc-slider-prev:hover,
.whc-slider-next:hover {
    background: #ec6907;
}

.whc-slider-prev svg,
.whc-slider-next svg {
    width: 24px;
    height: 24px;
    fill: #1a1d26;
}

.whc-slider-prev:hover svg,
.whc-slider-next:hover svg {
    fill: #fff;
}

.whc-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.whc-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whc-slider-dot.active,
.whc-slider-dot:hover {
    background: #ec6907;
}

/* ===========================================
   PROPERTY GALLERY WIDGET - NEW LAYOUTS
   =========================================== */

/* Gallery Wrapper */
.whc-gallery-wrapper {
    display: flex;
    width: 100%;
}

/* Main Side Layout (big left, thumbs right) */
.whc-gallery-main-side {
    flex-direction: row;
}

/* Main Left Layout (thumbs left, big right) */
.whc-gallery-main-left {
    flex-direction: row;
}

/* Main Bottom Layout */
.whc-gallery-main-bottom {
    flex-direction: column;
}

/* Main Image Container */
.whc-main-image-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.whc-main-image-container img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.whc-main-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Thumbnails Container - Vertical */
.whc-thumbs-container.whc-thumbs-vertical {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Thumbnails Container - Horizontal */
.whc-thumbs-container.whc-thumbs-horizontal {
    display: grid;
    width: 100%;
}

/* Thumbnail Item */
.whc-thumb-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.whc-thumb-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.whc-thumb-item:hover {
    transform: scale(1.02);
}

.whc-thumb-item.active {
    opacity: 1 !important;
}

/* Grid Layout */
.whc-gallery-grid {
    display: grid;
}

.whc-grid-item {
    position: relative;
    overflow: hidden;
}

.whc-grid-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.whc-grid-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hover Effects */
.whc-hover-zoom .whc-main-image-container:hover img,
.whc-hover-zoom .whc-grid-item:hover img {
    transform: scale(1.05);
}

.whc-hover-brightness .whc-main-image-container:hover img,
.whc-hover-brightness .whc-grid-item:hover img {
    filter: brightness(1.1);
}

.whc-hover-grayscale .whc-main-image-container img,
.whc-hover-grayscale .whc-grid-item img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.whc-hover-grayscale .whc-main-image-container:hover img,
.whc-hover-grayscale .whc-grid-item:hover img {
    filter: grayscale(0%);
}

/* Navigation Arrows */
.whc-nav-arrows {
    position: absolute;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.whc-arrows-bottom-right {
    bottom: 20px;
    right: 20px;
}

.whc-arrows-bottom-left {
    bottom: 20px;
    left: 20px;
}

.whc-arrows-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.whc-arrows-top-right {
    top: 20px;
    right: 20px;
}

.whc-arrows-top-left {
    top: 20px;
    left: 20px;
}

.whc-arrows-middle-sides {
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    justify-content: space-between;
    padding: 0 16px;
}

.whc-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whc-nav-arrow svg {
    width: 50%;
    height: 50%;
    transition: fill 0.3s ease;
}

/* Counter */
.whc-gallery-counter {
    position: absolute;
    z-index: 10;
    font-weight: 600;
}

.whc-counter-bottom-left {
    bottom: 20px;
    left: 20px;
}

.whc-counter-bottom-right {
    bottom: 20px;
    right: 20px;
}

.whc-counter-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.whc-counter-top-left {
    top: 20px;
    left: 20px;
}

.whc-counter-top-right {
    top: 20px;
    right: 20px;
}

/* Slider Wrapper */
.whc-gallery-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.whc-gallery-slider-wrapper .whc-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.whc-gallery-slider-wrapper .whc-slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.whc-gallery-slider-wrapper .whc-slider-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.whc-gallery-slider-wrapper .whc-slider-prev {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.whc-gallery-slider-wrapper .whc-slider-next {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive for new layouts */
@media (max-width: 768px) {
    .whc-gallery-wrapper.whc-gallery-main-side,
    .whc-gallery-wrapper.whc-gallery-main-left {
        flex-direction: column;
    }
    
    .whc-gallery-main-side .whc-thumbs-container.whc-thumbs-vertical,
    .whc-gallery-main-left .whc-thumbs-container.whc-thumbs-vertical {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        height: auto !important;
    }
    
    .whc-gallery-main-side .whc-thumb-item,
    .whc-gallery-main-left .whc-thumb-item {
        flex-shrink: 0;
        width: 100px;
        height: 70px !important;
    }
    
    .whc-main-image-container {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/10;
    }
    
    .whc-arrows-middle-sides {
        padding: 0 8px;
    }
    
    .whc-nav-arrow {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ===========================================
   PROPERTY PRICING WIDGET
   =========================================== */
.whc-property-pricing {
    width: 100%;
}

.whc-pricing-grid {
    display: grid;
    gap: 16px;
}

.whc-pricing-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.whc-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #ec6907;
    transition: height 0.3s ease;
}

.whc-pricing-card:hover {
    border-color: #d1d5db;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.whc-pricing-card:hover::before {
    height: 100%;
}

.whc-pricing-card.featured {
    border-color: #ec6907;
    background: rgba(236, 105, 7, 0.08);
}

.whc-pricing-card.featured::before {
    height: 100%;
}

.whc-pricing-icon {
    width: 56px;
    height: 56px;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
    color: #ec6907;
    transition: all 0.3s ease;
}

.whc-pricing-card:hover .whc-pricing-icon {
    background: #ec6907;
    color: #fff;
}

.whc-pricing-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.whc-pricing-info {
    flex: 1;
}

.whc-pricing-name {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1a1d26;
    margin-bottom: 4px;
}

.whc-pricing-desc {
    font-size: 13px;
    color: #6b7280;
}

.whc-pricing-price {
    text-align: right;
}

.whc-pricing-amount {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: #ec6907;
}

/* ===========================================
   PROPERTY SPECS WIDGET
   =========================================== */
.whc-property-specs {
    width: 100%;
}

.whc-specs-grid {
    display: grid;
    gap: 16px;
}

.whc-specs-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.whc-spec-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.whc-spec-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ec6907;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.whc-spec-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.whc-spec-card:hover::before {
    transform: scaleX(1);
}

.whc-spec-icon {
    font-size: 40px;
    color: #ec6907;
    margin-bottom: 12px;
}

.whc-spec-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.whc-spec-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.whc-spec-value {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #1a1d26;
}

.whc-spec-unit {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
}

/* ===========================================
   PROPERTY CARD WIDGET
   =========================================== */
.whc-property-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.whc-property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #ec6907;
    transition: height 0.3s ease;
    z-index: 2;
}

.whc-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: #d1d5db;
}

.whc-property-card:hover::before {
    height: 100%;
}

/* Card Image */
.whc-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f3f5;
}

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

.whc-hover-zoom:hover .whc-card-image img {
    transform: scale(1.08);
}

.whc-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: #ec6907;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

/* Card Content */
.whc-card-content {
    padding: 24px;
}

.whc-card-category {
    font-size: 11px;
    font-weight: 700;
    color: #ec6907;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.whc-card-title {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #1a1d26;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.whc-card-title a {
    color: inherit;
    text-decoration: none;
}

.whc-property-card:hover .whc-card-title {
    color: #ec6907;
}

.whc-card-specs {
    display: flex;
    gap: 16px;
}

.whc-card-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4a5068;
}

.whc-card-spec-icon {
    display: flex;
    align-items: center;
}

.whc-card-spec-icon svg {
    width: 16px;
    height: 16px;
    fill: #9ca3af;
}

/* Card Footer */
.whc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #f8f9fb;
    border-top: 1px solid #e5e7eb;
}

.whc-card-price {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #1a1d26;
}

.whc-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid #ec6907;
    color: #ec6907;
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.whc-card-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.whc-card-btn:hover {
    background: #ec6907;
    color: #fff;
}

/* ===========================================
   PROPERTY SHOWCASE GRID + FILTERS
   (kept intentionally simple to avoid CSS issues)
   =========================================== */
.whc-property-showcase {
    width: 100%;
}

/* Filter panel styled similar to reference screenshot */
.whc-showcase-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 24px;
    margin-bottom: 32px;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.whc-showcase-filter-item {
    display: flex;
    flex-direction: column;
}

.whc-showcase-filter-item label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 6px;
}

.whc-showcase-filter-item select,
.whc-showcase-filter-item input[type="number"] {
    border: 1px solid #d1d5db;
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    min-height: 42px;
    background-color: #ffffff;
}

.whc-showcase-filter-item select:focus,
.whc-showcase-filter-item input[type="number"]:focus {
    outline: none;
    border-color: #ec6907;
}

.whc-showcase-filter-item .whc-filter-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whc-filter-range-slider .whc-range-values {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whc-range-value {
    padding: 6px 14px;
    background: #ec6907;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
}

.whc-range-separator {
    font-size: 13px;
    color: #6b7280;
}

.whc-range-sliders {
    position: relative;
    padding-top: 4px;
    height: 16px;
}

.whc-range-sliders input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
    left: 0;
}

.whc-range-sliders input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}

.whc-range-sliders input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ec6907;
    border: 2px solid #ffffff;
    margin-top: -5px;
    box-shadow: 0 0 0 2px rgba(236, 105, 7, 0.3);
}

.whc-range-sliders input[type="range"]::-moz-range-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}

.whc-range-sliders input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ec6907;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(236, 105, 7, 0.3);
}

/* Actions row: reset + search */
.whc-showcase-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
}

.whc-filter-reset-btn {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4b5563;
    cursor: pointer;
}

.whc-filter-submit-btn {
    border: none;
    background: #ec6907;
    color: #ffffff;
    padding: 12px 26px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whc-filter-submit-btn:hover {
    background: #d55a00;
}

.whc-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.whc-showcase-card {
    height: 100%;
}

.whc-showcase-card-hidden {
    display: none !important;
}

.whc-custom-project-card .whc-custom-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    font-weight: 700;
    color: #e5e7eb;
    background: #f8fafc;
}

.whc-custom-project-card .whc-card-category {
    color: #9ca3af;
}

@media (max-width: 1024px) {
    .whc-showcase-filters {
        column-gap: 24px;
        padding: 20px 22px;
    }

    .whc-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .whc-showcase-filters {
        grid-template-columns: 1fr;
        row-gap: 18px;
        padding: 18px 16px;
    }

    .whc-showcase-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ===========================================
   LIGHTBOX
   =========================================== */
.whc-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whc-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.whc-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.whc-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.whc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.whc-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .whc-pricing-card {
        flex-direction: column;
        text-align: center;
    }
    
    .whc-pricing-price {
        text-align: center;
    }
    
    .whc-specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .whc-gallery-nav {
        bottom: 10px;
        right: 10px;
    }
    
    .whc-gallery-prev,
    .whc-gallery-next {
        width: 40px;
        height: 40px;
    }
    
    .whc-card-specs {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .whc-specs-grid {
        grid-template-columns: 1fr !important;
    }
    
    .whc-card-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ===========================================
   SINGLE PROPERTY PAGE TEMPLATE
   =========================================== */
.whc-single-property {
    padding: 40px 0 80px;
    background: #f8f9fb;
}

.whc-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.whc-single-header {
    margin-bottom: 40px;
}

.whc-single-category {
    display: inline-block;
    padding: 6px 16px;
    background: #ec6907;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.whc-single-title {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 900;
    font-size: 48px;
    color: #1a1d26;
    margin: 0 0 16px 0;
    line-height: 1.1;
}

/* Price From */
.whc-single-price-from {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff8f3 0%, #fff 100%);
    border: 2px solid #ec6907;
    border-radius: 4px;
    display: inline-flex;
}

.whc-single-price-from .whc-price-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.whc-single-price-from .whc-price-value {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: #ec6907;
}

.whc-single-quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.whc-quick-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #4a5068;
}

.whc-quick-spec svg {
    width: 20px;
    height: 20px;
    fill: #ec6907;
}

/* Main Grid */
.whc-single-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Gallery */
.whc-single-gallery {
    margin-bottom: 40px;
}

/* Split Gallery Layout - Big image left, thumbnails right */
.whc-gallery-split {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
    height: 500px;
}

.whc-gallery-split .whc-gallery-main-image {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
    height: 100%;
    margin-bottom: 0;
}

.whc-gallery-split .whc-gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.whc-gallery-thumbnails-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
}

.whc-gallery-thumbnails-right .whc-gallery-thumb {
    flex-shrink: 0;
    height: 90px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    position: relative;
}

.whc-gallery-thumbnails-right .whc-gallery-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s ease;
    z-index: 1;
}

.whc-gallery-thumbnails-right .whc-gallery-thumb:hover,
.whc-gallery-thumbnails-right .whc-gallery-thumb.active {
    opacity: 1;
}

.whc-gallery-thumbnails-right .whc-gallery-thumb:hover::before,
.whc-gallery-thumbnails-right .whc-gallery-thumb.active::before {
    background: transparent;
}

.whc-gallery-thumbnails-right .whc-gallery-thumb.active {
    outline: 3px solid #ec6907;
    outline-offset: -3px;
}

.whc-gallery-thumbnails-right .whc-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Old thumbnails below layout (fallback) */
.whc-gallery-main-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 12px;
}

.whc-gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.whc-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.whc-single-gallery .whc-gallery-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    position: relative;
}

.whc-single-gallery .whc-gallery-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s ease;
    z-index: 1;
}

.whc-single-gallery .whc-gallery-thumb:hover,
.whc-single-gallery .whc-gallery-thumb.active {
    opacity: 1;
}

.whc-single-gallery .whc-gallery-thumb:hover::before,
.whc-single-gallery .whc-gallery-thumb.active::before {
    background: transparent;
}

.whc-single-gallery .whc-gallery-thumb.active {
    outline: 3px solid #ec6907;
    outline-offset: -3px;
}

.whc-single-gallery .whc-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description */
.whc-single-description {
    background: #fff;
    padding: 40px;
    border: 1px solid #e5e7eb;
}

.whc-single-description h2 {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #1a1d26;
    margin: 0 0 20px 0;
}

.whc-single-description p {
    color: #4a5068;
    line-height: 1.7;
    margin-bottom: 16px;
}

.whc-single-description p:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.whc-single-sidebar {
    position: sticky;
    top: 20px;
}

.whc-single-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 28px;
    margin-bottom: 20px;
}

.whc-single-box h3 {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #1a1d26;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f5;
}

/* Specs List */
.whc-specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whc-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.whc-spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.whc-spec-row .whc-spec-label {
    font-size: 14px;
    color: #6b7280;
}

.whc-spec-row .whc-spec-value {
    font-weight: 700;
    font-size: 15px;
    color: #1a1d26;
}

/* Pricing List */
.whc-pricing-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.whc-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fb;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.whc-pricing-row:hover {
    border-left-color: #ec6907;
}

.whc-pricing-row.whc-pricing-featured {
    background: rgba(236, 105, 7, 0.08);
    border-left-color: #ec6907;
}

.whc-pricing-row .whc-pricing-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1d26;
    display: block;
}

.whc-pricing-row .whc-pricing-desc {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

.whc-pricing-row .whc-pricing-amount {
    font-family: 'Alumni Sans', sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: #ec6907;
    white-space: nowrap;
}

/* CTA Button */
.whc-single-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: #ec6907;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.whc-single-cta:hover {
    background: #d55a00;
    color: #fff;
}

.whc-single-cta svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 1024px) {
    .whc-single-grid {
        grid-template-columns: 1fr;
    }
    
    .whc-single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .whc-single-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .whc-single-title {
        font-size: 36px;
    }
    
    .whc-single-sidebar {
        grid-template-columns: 1fr;
    }
    
    .whc-gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .whc-single-description {
        padding: 24px;
    }
    
    /* Split gallery responsive */
    .whc-gallery-split {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .whc-gallery-split .whc-gallery-main-image {
        aspect-ratio: 16/10;
        height: auto;
    }
    
    .whc-gallery-thumbnails-right {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
        padding-bottom: 8px;
    }
    
    .whc-gallery-thumbnails-right .whc-gallery-thumb {
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .whc-single-price-from {
        width: 100%;
        justify-content: center;
    }
    
    .whc-single-price-from .whc-price-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .whc-single-property {
        padding: 20px 0 40px;
    }
    
    .whc-single-title {
        font-size: 28px;
    }
    
    .whc-single-quick-specs {
        gap: 16px;
    }
    
    .whc-gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .whc-pricing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===========================================
   PROPERTY SLIDER WIDGET (NEW - whc-ps prefix)
   =========================================== */
.whc-ps-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.whc-ps-viewport {
    overflow: hidden;
    width: 100%;
}

.whc-ps-track {
    display: flex;
    transition: transform 0.5s ease;
}

.whc-ps-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Card */
.whc-ps-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.whc-ps-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Card Image */
.whc-ps-card-image {
    position: relative;
    overflow: hidden;
    background: #f1f3f5;
    height: 200px;
}

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

.whc-ps-card:hover .whc-ps-card-image img {
    transform: scale(1.05);
}

/* Badge */
.whc-ps-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-weight: 600;
    font-size: 11px;
    padding: 5px 10px;
    background: #f87171;
    color: #fff;
    border-radius: 4px;
}

/* Gallery Count */
.whc-ps-gallery-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    color: #fff;
}

.whc-ps-gallery-count svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

/* Card Content */
.whc-ps-card-content {
    padding: 16px;
}

.whc-ps-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1d26;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.whc-ps-card:hover .whc-ps-title {
    color: #ec6907;
}

.whc-ps-price {
    font-weight: 700;
    font-size: 15px;
    color: #ec6907;
    margin-bottom: 8px;
}

/* Specs */
.whc-ps-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.whc-ps-spec {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Navigation Arrows */
.whc-ps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.whc-ps-arrow:hover {
    background: #ec6907;
}

.whc-ps-arrow svg {
    width: 20px;
    height: 20px;
    fill: #1a1d26;
    transition: fill 0.3s ease;
    display: block;
}

.whc-ps-arrow:hover svg {
    fill: #ffffff;
}

.whc-ps-prev {
    left: -22px;
}

.whc-ps-next {
    right: -22px;
}

/* Responsive */
@media (max-width: 1024px) {
    .whc-ps-prev {
        left: 8px;
    }
    
    .whc-ps-next {
        right: 8px;
    }
}

@media (max-width: 768px) {
    .whc-ps-arrow {
        width: 36px;
        height: 36px;
    }
    
    .whc-ps-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .whc-ps-card-image {
        height: 160px;
    }
    
    .whc-ps-title {
        font-size: 15px;
    }
    
    .whc-ps-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .whc-ps-arrow {
        width: 32px;
        height: 32px;
    }
    
    .whc-ps-arrow svg {
        width: 14px;
        height: 14px;
    }
}
