/* Single Property Component Styles */

.bide-single-property-wrapper {
    max-width: 1200px;
    margin: 100px auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.bide-single-property-top {
    margin-bottom: 30px;
}

/* Title Component Styling */
.listing-hero-title {
    margin-bottom: 1rem;
}

.listing-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.bide-single-property-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

.bide-single-property-body {
    min-height: 200px;
    min-width: 0;
    overflow: hidden;
}

.bide-single-property-sidebar {
    position: sticky;
    top: 60px;
    align-self: start;
}

.bide-single-property-bottom {
    margin-top: 40px;
}

.bide-single-property-placeholder {
    padding: 60px 20px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.bide-single-property-placeholder h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.bide-single-property-placeholder p {
    color: #666;
    font-size: 16px;
}

/* Capacity Notes Component */
.single-property-capacity-notes {
    margin-bottom: 20px;
}

.single-property-capacity-notes p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Short Description Component */
.single-property-short-description {
    margin-bottom: 20px;
}

.single-property-short-description p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Description Component */
.single-property-description {
    margin-bottom: 24px;
}

.single-property-description-text {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.single-property-description-text p {
    margin: 0 0 16px 0;
}

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

/* Second Description Component */
.single-property-second-description {
    margin-bottom: 24px;
}

.single-property-second-description-text {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.single-property-second-description-text p {
    margin: 0 0 16px 0;
}

.single-property-second-description-text p:last-child {
    margin-bottom: 0;
}

/* Location Description Component */
.single-property-location-description {
    margin-bottom: 24px;
}

.single-property-location-description-text {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.single-property-location-description-text p {
    margin: 0 0 16px 0;
}

.single-property-location-description-text p:last-child {
    margin-bottom: 0;
}

/* Check-In Notes Component */
.single-property-check-in-notes {
    margin-bottom: 24px;
}

.single-property-check-in-notes p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin: 0;
}

.single-property-check-in-notes .check-in-time,
.single-property-check-in-notes .check-out-time {
    font-weight: 500;
}

.single-property-check-in-notes .separator {
    color: #888;
    padding: 0 8px;
}

/* Location Map Component */
.single-property-location-map {
    margin-bottom: 24px;
}

/* Google Map Styles */
.bide-google-map-container {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bide-google-map {
    width: 100%;
    height: 400px;
    min-height: 300px;
}

/* Leaflet Map Styles */
.bide-leaflet-map-container {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bide-leaflet-map {
    width: 100%;
    height: 400px;
    min-height: 300px;
}

/* Map Responsive adjustments */
@media (max-width: 768px) {

    .bide-google-map,
    .bide-leaflet-map {
        height: 300px;
    }
}

@media (max-width: 480px) {

    .bide-google-map,
    .bide-leaflet-map {
        height: 250px;
    }
}

/* Map Info Window Styles */
.map-info-window {
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    max-width: 250px;
}

.map-info-window h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.map-info-window p {
    margin: 0;
}

/* Leaflet specific overrides */
.bide-leaflet-map .leaflet-control-attribution {
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Dropdown Component - Reusable */
.single-property-dropdown {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.single-property-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #fafafa;
    transition: background-color 0.2s ease;
    user-select: none;
}

.single-property-dropdown-header:hover {
    background: #f5f5f5;
}

.single-property-dropdown-header:focus {
    outline: 2px solid #0066cc;
    outline-offset: -2px;
}

.single-property-dropdown-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.single-property-dropdown-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    color: #666;
}

.single-property-dropdown.is-expanded .single-property-dropdown-icon {
    transform: rotate(180deg);
}

.single-property-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.single-property-dropdown-content-inner {
    padding: 16px 20px 20px;
}

.single-property-dropdown-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* BBG Component */
.single-property-bbg {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.single-property-bbg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 15px;
    color: #333;
    position: relative;
}

.single-property-bbg-item:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: 0;
    color: #999;
    font-size: 14px;
}

.single-property-bbg-item:first-child {
    padding-left: 0;
}

.single-property-bbg-icon {
    width: 18px;
    height: 18px;
    color: #666;
    flex-shrink: 0;
}

.single-property-bbg-text {
    font-weight: 400;
    white-space: nowrap;
}

/* Custom Amenities Component */
.bide-single-property-custom-amenities {
    margin-bottom: 24px;
}

.bide-single-property-custom-amenities h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.custom-amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.custom-amenity-item:hover {
    background: #e9ecef;
}

.custom-amenity-icon {
    width: 20px;
    height: 20px;
    color: #4a5568;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-amenity-content {
    flex: 1;
    min-width: 0;
}

.custom-amenity-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.custom-amenity-description {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* Amenities Component (new) */
.bide-single-property-amenities {
    margin-bottom: 24px;
}

.sp-amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-amenity-category {
    margin-bottom: 20px;
}

.sp-amenity-category:last-child {
    margin-bottom: 0;
}

.sp-amenity-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.sp-amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.sp-amenity-item:hover {
    background: #e9ecef;
}

.sp-amenity-icon {
    width: 20px;
    height: 20px;
    color: #4a5568;
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-amenity-content {
    flex: 1;
    min-width: 0;
}

.sp-amenity-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.sp-amenity-description {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* External Documents Component */
.sp-documents {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-documents__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-documents__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.sp-documents__item:hover {
    background: #e9ecef;
}

.sp-documents__icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #4a5568;
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-documents__content {
    flex: 1;
    min-width: 0;
}

.sp-documents__link {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.sp-documents__link:hover {
    color: #1a202c;
    text-decoration: underline;
}

/* PriceFrom Component */
.bide-price-from {
    font-size: 1.2em;
}

.bide-price-from__label {
    color: #666;
}

.bide-price-from__amount {
    font-weight: 700;
    color: #1a1a1a;
}

.bide-price-from__period {
    color: #666;
}

/* You May Also Like Section */
.bide-you-may-also-like {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.bide-you-may-also-like-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.bide-you-may-also-like-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.bide-you-may-also-like-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 300px;
    max-width: 400px;
}

/* Scrollbar Styling */
.bide-you-may-also-like-cards::-webkit-scrollbar {
    height: 8px;
}

.bide-you-may-also-like-cards::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.bide-you-may-also-like-cards::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.bide-you-may-also-like-cards::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .bide-single-property-grid {
        grid-template-columns: 1fr;
    }

    .bide-single-property-sidebar {
        position: relative;
        top: 0;
    }

    .bide-you-may-also-like-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .bide-you-may-also-like-card {
        flex: 0 0 80%;
        min-width: 250px;
    }
}

/* Custom HTML Component Styles */
.bide-custom-html-container {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}

/* Make sure iframes are responsive */
.bide-custom-html-container iframe {
    max-width: 100%;
}

/* Property Textarea Styling */
.property-textarea {
    width: 100%;
    padding: 10px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    background: #f9f9f9;
}

.property-textarea:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
}

.property-help-text {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.property-help-text code {
    padding: 2px 6px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 11px;
    color: #d63638;
}

/* Custom HTML Component Styles */
.bide-custom-html-container {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}

/* Make sure iframes are responsive */
.bide-custom-html-container iframe {
    max-width: 100%;
}

/* Property Textarea Styling */
.property-textarea {
    width: 100%;
    padding: 10px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    background: #f9f9f9;
}

.property-textarea:focus {
    outline: none;
    border-color: #0073aa;
    background: #fff;
}

.property-help-text {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.property-help-text code {
    padding: 2px 6px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 11px;
    color: #d63638;
}

/* Custom Fields Component */
.single-property-custom-fields {
    margin-bottom: 24px;
}

.single-property-custom-fields-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.single-property-custom-fields-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Custom Field Dropdown - inherits from reusable Dropdown pattern */
.single-property-custom-field-dropdown {
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.single-property-custom-fields-list .single-property-custom-field-dropdown:first-child {
    border-radius: 8px 8px 0 0;
}

.single-property-custom-fields-list .single-property-custom-field-dropdown:last-child {
    border-radius: 0 0 8px 8px;
}

.single-property-custom-fields-list .single-property-custom-field-dropdown:only-child {
    border-radius: 8px;
}

.single-property-custom-fields-list .single-property-custom-field-dropdown+.single-property-custom-field-dropdown {
    border-top: none;
}

.single-property-custom-field-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    background: #fafafa;
    transition: background-color 0.2s ease;
    user-select: none;
}

.single-property-custom-field-dropdown-header:hover {
    background: #f0f0f0;
}

.single-property-custom-field-dropdown-header:focus {
    outline: 2px solid #0066cc;
    outline-offset: -2px;
}

.single-property-custom-field-dropdown-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.single-property-custom-field-dropdown-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    color: #666;
}

.single-property-custom-field-dropdown.is-expanded .single-property-custom-field-dropdown-icon {
    transform: rotate(180deg);
}

.single-property-custom-field-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.single-property-custom-field-dropdown-content-inner {
    padding: 12px 20px 16px;
    border-top: 1px solid #e8e8e8;
}

.single-property-custom-field-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ─── Scroll-To Button ────────────────────────────────────────────────────────
   Secondary colour scheme to complement .booking-button
   (primary: filled purple gradient; secondary: outlined purple)
   ──────────────────────────────────────────────────────────────────────────── */

.sp-scroll-to-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: transparent;
    margin-top: 1em;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.sp-scroll-to-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
    transform: translateY(-1px);
}

.sp-scroll-to-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.35);
}

/* ─── Photo Gallery ─────────────────────────────────────────────────────────── */

.photo-gallery-wrapper {
    position: relative;
}

/* Stacked: button sits below the gallery, pinned to the right */
.photo-gallery-wrapper--stacked .photo-gallery-show-all {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Overlaid: button floats over the bottom-right corner of the gallery */
.photo-gallery-wrapper--overlaid .photo-gallery-show-all {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
}

/* The button itself */
.photo-gallery-show-all__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.photo-gallery-show-all__btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.photo-gallery-show-all__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.photo-gallery-show-all__icon {
    font-size: 16px;
    line-height: 1;
    color: #555;
}

/* ===========================
   Reviews Component Styles
   =========================== */

.single-property-reviews {
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden;
}

/* Reviews Header */
.single-property-reviews-header {
    margin-bottom: 20px;
}

.single-property-reviews-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.single-property-reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.single-property-reviews-average {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.single-property-reviews-count {
    font-size: 0.9em;
    color: #666;
}

/* Star Rating */
.single-property-review-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f5a623;
    margin-bottom: 4px;
}

.single-property-star {
    flex-shrink: 0;
}

.single-property-star-full {
    color: #f5a623;
}

.single-property-star-half {
    color: #f5a623;
}

.single-property-star-empty {
    color: #ddd;
    stroke: #ccc;
}

/* Review Card */
.single-property-review-card {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.single-property-review-card:last-child {
    border-bottom: none;
}

.single-property-review-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
}

.single-property-review-name {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.single-property-review-date {
    display: block;
    color: #888;
    font-size: 0.85em;
    margin-bottom: 4px;
}

.single-property-review-score {
    display: inline-block;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.single-property-review-content {
    color: #444;
    font-size: 0.95em;
    line-height: 1.6;
    margin-top: 4px;
}

.single-property-review-content p {
    margin: 0;
}

/* Reviews List */
.single-property-reviews-list {
    margin-top: 10px;
}

/* Reviews Slider */
.single-property-reviews-slider {
    margin-top: 10px;
    padding: 0 40px 50px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.single-property-reviews-slide {
    padding: 0 10px;
    outline: none;
}

.single-property-reviews-slide .single-property-review-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    border-bottom: none;
}

/* Slick slider overrides for reviews */
.single-property-reviews-slider .slick-prev,
.single-property-reviews-slider .slick-next {
    z-index: 1;
    width: 36px;
    height: 36px;
}

.single-property-reviews-slider .slick-prev {
    left: 0;
}

.single-property-reviews-slider .slick-next {
    right: 0;
}

.single-property-reviews-slider .slick-dots {
    bottom: 10px;
}

.single-property-reviews-slider .slick-dots li button:before {
    font-size: 10px;
    color: #ccc;
}

.single-property-reviews-slider .slick-dots li.slick-active button:before {
    color: #333;
}

.single-property-reviews-slider .slick-list {
    overflow: hidden;
    width: 100%;
}

.single-property-reviews-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.single-property-reviews-slider .slick-slide {
    height: auto;
    float: none;
    min-width: 0;
}

.single-property-reviews-slider .slick-slide>div {
    height: 100%;
}

/* Reviews Responsive */
@media (max-width: 768px) {
    .single-property-reviews-header {
        margin-bottom: 15px;
    }

    .single-property-reviews-title {
        font-size: 1.2em;
    }

    .single-property-reviews-slide .single-property-review-card {
        padding: 15px;
    }

    .single-property-reviews-slider {
        padding: 0 30px 50px;
    }

    .single-property-reviews-slider .slick-prev {
        left: -5px;
    }

    .single-property-reviews-slider .slick-next {
        right: -5px;
    }
}

@media (max-width: 480px) {
    .single-property-reviews-slider {
        padding: 0 25px 50px;
    }
}