/**
 * Single Property Page Styles
 * WP Property Listing Plugin
 */

/* -----------------------------------------------------------------------
   Wrap & Layout
   -------------------------------------------------------------------- */
.wppl-single-wrap {
        max-width: 100%;
}

.wppl-single-container {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 40px;
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 20px;
        align-items: start;
}

@media (max-width: 1024px) {
        .wppl-single-container {
                grid-template-columns: 1fr;
        }
}

/* -----------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------- */
.wppl-gallery {
        display: grid;
        grid-template-columns: 1fr 220px;
        gap: 12px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
}

@media (max-width: 900px) {
        .wppl-gallery {
                grid-template-columns: 1fr;
        }
}

/* Slider */
.wppl-slider {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        background: #111;
}

.wppl-slider__track {
        display: flex;
        transition: transform 0.4s ease;
}

.wppl-slider__slide {
        flex: 0 0 100%;
        max-height: 520px;
}

.wppl-slider__slide img {
        width: 100%;
        height: 520px;
        object-fit: cover;
        display: block;
}

@media (max-width: 768px) {
        .wppl-slider__slide,
        .wppl-slider__slide img {
                height: 260px;
        }
}

/* Slider Buttons */
.wppl-slider__prev,
.wppl-slider__next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.85);
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
}

.wppl-slider__prev { left: 12px; }
.wppl-slider__next { right: 12px; }

.wppl-slider__prev:hover,
.wppl-slider__next:hover {
        background: #fff;
}

/* Dots */
.wppl-slider__dots {
        position: absolute;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
}

.wppl-slider__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.5);
        cursor: pointer;
        padding: 0;
        transition: background 0.2s;
}

.wppl-slider__dot.is-active {
        background: #fff;
}

/* Thumbnails */
.wppl-gallery__thumbs {
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow-y: auto;
        max-height: 520px;
}

@media (max-width: 900px) {
        .wppl-gallery__thumbs {
                flex-direction: row;
                max-height: none;
                overflow-x: auto;
        }
}

.wppl-gallery__thumb {
        flex-shrink: 0;
        height: 100px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.2s;
        border: 2px solid transparent;
}

@media (max-width: 900px) {
        .wppl-gallery__thumb {
                width: 140px;
                height: 90px;
        }
}

.wppl-gallery__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
}

.wppl-gallery__thumb.is-active,
.wppl-gallery__thumb:hover {
        opacity: 1;
        border-color: #0da8b5;
}

.wppl-gallery__placeholder {
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        border-radius: 12px;
        color: #888;
}

/* -----------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------- */
.wppl-lightbox__overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.85);
        z-index: 9998;
        display: none;
}

.wppl-lightbox__overlay.is-open {
        display: block;
}

.wppl-lightbox {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: none;
        align-items: center;
        justify-content: center;
}

.wppl-lightbox.is-open {
        display: flex;
}

.wppl-lightbox__img-wrap {
        max-width: 90vw;
        max-height: 85vh;
        display: flex;
        align-items: center;
        justify-content: center;
}

.wppl-lightbox__img-wrap img {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 8px;
        object-fit: contain;
}

.wppl-lightbox__close,
.wppl-lightbox__prev,
.wppl-lightbox__next {
        position: fixed;
        background: rgba(255,255,255,0.15);
        border: none;
        color: #fff;
        cursor: pointer;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
}

.wppl-lightbox__close:hover,
.wppl-lightbox__prev:hover,
.wppl-lightbox__next:hover {
        background: rgba(255,255,255,0.3);
}

.wppl-lightbox__close { top: 20px; right: 20px; }
.wppl-lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.wppl-lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* -----------------------------------------------------------------------
   Content
   -------------------------------------------------------------------- */
.wppl-single-content {
        min-width: 0;
}

/* Breadcrumb */
.wppl-breadcrumb {
        font-size: 13px;
        color: #888;
        margin-bottom: 16px;
}

.wppl-breadcrumb a {
        color: #888;
        text-decoration: none;
}

.wppl-breadcrumb a:hover {
        color: #0da8b5;
}

.wppl-breadcrumb__sep {
        margin: 0 4px;
}

.wppl-breadcrumb__current {
        color: #333;
}

/* Title */
.wppl-single__title {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
        margin: 0 0 16px;
        color: #111;
}

@media (max-width: 768px) {
        .wppl-single__title { font-size: 24px; }
}

/* -----------------------------------------------------------------------
   Quick Stats Strip (guests · bedrooms · beds · bathrooms)
   Sits right below the title — no duplication with the features repeater.
   -------------------------------------------------------------------- */
.wppl-quick-stats {
        list-style: none;
        margin: 0 0 24px;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 14px 0;
}

.wppl-quick-stat {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #444;
        padding: 0 20px 0 0;
        margin: 0 20px 0 0;
        border-right: 1px solid #e0e0e0;
        white-space: nowrap;
}

.wppl-quick-stat:last-child {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
}

.wppl-quick-stat .dashicons {
        color: #0da8b5;
        font-size: 18px;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
}

.wppl-quick-stat strong {
        font-weight: 700;
        color: #111;
}

@media (max-width: 480px) {
        .wppl-quick-stats {
                gap: 10px;
        }
        .wppl-quick-stat {
                border-right: none;
                padding-right: 0;
                margin-right: 0;
        }
}

/* Section Heading */
.wppl-section-heading {
        font-size: 18px;
        font-weight: 700;
        margin: 28px 0 14px;
        color: #111;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
}

/* Description */
.wppl-single__description p {
        font-size: 15px;
        line-height: 1.7;
        color: #444;
        margin-bottom: 12px;
}

/* Check Times */
.wppl-check-times-grid {
        display: flex;
        gap: 32px;
        flex-wrap: wrap;
}

.wppl-check-time {
        display: flex;
        gap: 8px;
        font-size: 14px;
        color: #555;
}

/* -----------------------------------------------------------------------
   Features Grid
   -------------------------------------------------------------------- */
.wppl-features-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
}

.wppl-feature-item {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 80px;
}

.wppl-feature-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 8px;
        flex-shrink: 0;
}

.wppl-feature-icon img {
        width: 22px;
        height: 22px;
        object-fit: contain;
}

.wppl-feature-icon .dashicons {
        font-size: 20px;
        color: #555;
}

.wppl-feature-info {
        display: flex;
        flex-direction: column;
}

.wppl-feature-value {
        font-size: 16px;
        font-weight: 700;
        color: #111;
}

.wppl-feature-label {
        font-size: 12px;
        color: #888;
        text-transform: capitalize;
}

/* -----------------------------------------------------------------------
   Amenities
   -------------------------------------------------------------------- */
.wppl-amenities-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
}

@media (max-width: 768px) {
        .wppl-amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

.wppl-amenity-item {
        display: flex;
        align-items: center;
        gap: 10px;
}

.wppl-amenity-icon {
        width: 28px;
        height: 28px;
        object-fit: contain;
        flex-shrink: 0;
        color: #555;
}

span.wppl-amenity-icon.dashicons {
        font-size: 22px;
}

.wppl-amenity-title {
        font-size: 14px;
        color: #444;
}

.wppl-show-all-btn {
        display: inline-block;
        margin-top: 16px;
        background: none;
        border: 1.5px solid #d0d0d0;
        border-radius: 100px;
        padding: 10px 24px;
        font-size: 14px;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
        text-decoration: underline;
        color: #333;
}

.wppl-show-all-btn:hover {
        border-color: #111;
        background: #f9f9f9;
}

/* -----------------------------------------------------------------------
   Map (iframe embed — no API key required)
   -------------------------------------------------------------------- */
.wppl-map-address {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #444;
        margin: 0 0 12px;
}

.wppl-map-address .dashicons {
        color: #0da8b5;
        font-size: 18px;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
}

.wppl-map-embed-wrap {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        line-height: 0; /* collapse whitespace gap below iframe */
}

.wppl-map-embed {
        display: block;
        width: 100%;
        height: 380px;
        border: 0;
}

.wppl-map-link {
        display: inline-block;
        margin-top: 10px;
        font-size: 13px;
        color: #0da8b5;
        text-decoration: underline;
        text-underline-offset: 2px;
}

.wppl-map-link:hover {
        color: #0891a0;
}

/* -----------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------- */
.wppl-single__contact {
        margin-bottom: 40px;
}

/* -----------------------------------------------------------------------
   Booking Box
   -------------------------------------------------------------------- */
.wppl-booking-box {
        background: #fff;
        border: 1.5px solid #e0e0e0;
        border-radius: 16px;
        padding: 28px 24px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.07);
        position: sticky;
        top: 100px;
}

.wppl-booking-box__heading {
        font-size: 16px;
        font-weight: 700;
        color: #111;
        margin: 0 0 20px;
}

.wppl-booking-box__btn {
        display: block;
        text-align: center;
        width: 100%;
        padding: 14px 24px;
        background: #111;
        color: #fff;
        border-radius: 100px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s;
        box-sizing: border-box;
}

.wppl-booking-box__btn:hover {
        background: #0da8b5;
}

.wppl-booking-box__no-url {
        color: #888;
        font-size: 14px;
}

/* -----------------------------------------------------------------------
   Related Properties
   -------------------------------------------------------------------- */
.wppl-related {
        background: #f9f9f9;
        padding: 60px 20px;
}

.wppl-related__inner {
        max-width: 1200px;
        margin: 0 auto;
}

.wppl-related__heading {
        text-align: center;
        font-size: 26px;
        font-weight: 700;
        color: #111;
        margin: 0 0 32px;
}
