* {
    box-sizing: border-box;
}

.hospitable-single-property {
    background: #ffffff;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.hospitable-single-property * {
    max-width: 100%;
}

/* ========================================
   Layout Structure
======================================== */

.hospitable-property-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hospitable-property-gallery-section {
    padding: 0 0;
    width: 100%;
}

.hospitable-property-main-section {
    width: 100%;
}

.hospitable-property-content-wrapper {
    display: flex !important;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.hospitable-property-content {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 65%;
}

aside.hospitable-booking-sidebar {
    max-width: 35%;
}

.hospitable-property-header {
    background: transparent;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.hospitable-property-title {
    margin: 0 0 20px 0;
    font-size: 32px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
}

.hospitable-property-separator {
    height: 1px;
    background: #000000;
    width: 150px;
    margin: 20px 0;
}

.hospitable-property-subtitle {
    margin: 0 !important;
    font-size: 22px;
    color: #000000;
    line-height: 1.6;
}

.hospitable-property-overview h2,
.hospitable-property-description h2,
.hospitable-property-amenities-preview h2,
.hospitable-property-reviews h2 {
    font-size: 28px;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    margin: 0 0 24px 0 !important;
}

.hospitable-property-overview {
    background: transparent;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

.hospitable-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hospitable-overview-card {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    contain: layout style paint;
}

.hospitable-overview-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.hospitable-overview-label {
    font-size: 20px;
    color: #000000;
    font-weight: 400;
    display: block;
    margin-bottom: 4px;
    text-align: center;
}

.hospitable-overview-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.hospitable-overview-icon {
    flex-shrink: 0;
    color: #000000;
    font-size: 32px;
}

.hospitable-overview-icon svg {
    width: 32px;
    height: 32px;
}

.hospitable-overview-value {
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1;
}

.hospitable-property-description {
    background: transparent;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

.hospitable-description-preview {
    color: #333;
    font-size: 20px;
    line-height: 1.7;
}

.hospitable-description-preview p {
    margin: 0 0 16px 0;
}

.hospitable-description-preview p:last-child {
    margin-bottom: 0;
}

.hospitable-property-amenities-preview {
    background: transparent;
    padding-bottom: 35px;
    border-bottom: 1px solid #ddd;
}

.hospitable-amenities-preview-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hospitable-amenity-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #333;
}

.hospitable-amenity-preview-item i {
    color: #000000;
    font-size: 18px;
    flex-shrink: 0;
}

/* Single property template preview icons */
.amenity-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure FontAwesome icons align properly */
.hospitable-amenity-preview-item .fa-check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hospitable-amenity-preview-item span {
    line-height: 1.3em;
}

.hospitable-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px !important;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    will-change: transform;
}

.hospitable-read-more-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateX(4px);
}

.hospitable-read-more-btn:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.3);
    outline-offset: 2px;
}

.hospitable-read-more-btn i {
    transition: transform 0.3s ease;
}

.hospitable-read-more-btn:hover i {
    transform: translateX(4px);
}

.hospitable-property-reviews {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.hospitable-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.hospitable-reviews-header h2 {
    margin: 0 !important;
}

.hospitable-reviews-arrows {
    display: flex;
    gap: 10px;
}

.hospitable-reviews-arrow {
    border-radius: 50px !important;
    padding: 15px 20px !important;
}

.hospitable-reviews-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.hospitable-reviews-slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.hospitable-review-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.hospitable-review-card {
    background: #ffffff;
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.3s ease;
    contain: layout style paint;
}

.hospitable-review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hospitable-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.hospitable-review-guest {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hospitable-guest-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: black;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.hospitable-guest-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hospitable-guest-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.3em;
}

.hospitable-review-date {
    font-size: 15px;
    color: #666;
    line-height: 1.3em;
}

.hospitable-review-rating {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    font-size: 16px;
}

.hospitable-review-content {
    margin-bottom: 12px;
}

.hospitable-review-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 17px;
}

.hospitable-review-platform {
    border-top: 1px solid #f3f4f6;
    font-size: 16px;
    color: #666;
}

.hospitable-review-platform span {
    color: black;
    text-transform: capitalize;
}

/* Review Read More Link */
.hospitable-review-read-more {
    color: #000000;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline;
}

.hospitable-review-read-more:hover {
    color: #666;
}

.hospitable-review-read-more:focus-visible {
    outline: 2px solid rgba(0, 102, 204, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reviews Slider Arrows (in header) */
.hospitable-reviews-arrow {
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hospitable-reviews-arrow:hover:not(:disabled) {
    background: #00000000;
    color: #ffffff;
}

.hospitable-reviews-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.hospitable-reviews-arrow:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.3);
    outline-offset: 2px;
}

.hospitable-booking-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    text-align: center;
}

.hospitable-booking-card h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.hospitable-booking-sidebar .hospitable-calendar-widget {
    margin: 0;
}

.hospitable-booking-sidebar .hospitable-calendar-wrapper iframe {
    min-height: 500px;
}

/* ========================================
   Modal Component (Description & Amenities)
======================================== */

.hospitable-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hospitable-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.hospitable-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.hospitable-modal-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: opacity, transform;
}

.hospitable-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    z-index: 3;
    padding: .5rem 1rem !important;
}

.hospitable-modal-close:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.hospitable-modal-close:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.3);
    outline-offset: 2px;
}

.hospitable-modal-header {
    padding: 32px 32px 20px;
}

.hospitable-modal-title {
    margin: 0;
    font-size: 28px !important;
    font-weight: 600;
    color: #000000;
    padding-right: 40px;
}

.hospitable-modal-body {
    padding: 10px 24px 32px 32px;
    overflow-y: auto;
    flex: 1;
}

.hospitable-modal-description {
    color: #333;
    font-size: 20px;
    line-height: 1.7;
}

.hospitable-modal-description p {
    margin: 0 0 16px 0;
}

.hospitable-modal-description p:last-child {
    margin-bottom: 0;
}

/* Amenities in modal - reuse shortcode styles */
.hospitable-modal-body .hospitable-amenities-grouped {
    margin: 0;
}

.hospitable-amenities-wrapper {
    margin: 0 !important;
}

.amenity-category {
    background: none !important;
    border-radius: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: none !important;
}

.amenity-category:hover {
    box-shadow: none !important;
}

.amenity-category-title {
    font-size: 22px;
    color: #000000;
    border: none !important;
    margin: 0 !important;
}

.hospitable-amenities-grouped {
    gap: 25px;
}

.amnity-icon-wrapper {
    width: 100% !important;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

/* ========================================
   Review Modal Specific Styles
======================================== */

.hospitable-review-modal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hospitable-review-modal-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hospitable-review-modal-date {
    font-size: 15px;
    color: #666;
}

.hospitable-review-modal-rating {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    font-size: 16px;
}

.hospitable-review-modal-platform {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    text-transform: capitalize;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 12px;
}

.hospitable-review-full-content {
    color: #333;
    font-size: 18px;
    line-height: 1.7;
    margin-top: 20px;
}

/* ========================================
   Responsive Design
======================================== */
@media screen and (max-width: 1200px) {
    .hospitable-single-property .site-main {
        max-width: 1150px !important;
    }

    .hospitable-overview-label {
        font-size: 18px;
    }
}

/* Tablet Landscape (1024px) */
@media screen and (max-width: 1024px) {

    .hospitable-property-wrapper {
        padding: 0 25px;
    }

    .hospitable-property-content-wrapper {
        display: flex !important;
        gap: 30px;
        flex-direction: column;
        align-items: center;
        padding-bottom: 35px;
    }

    .hospitable-property-content {
        width: 100%;
    }

    aside.hospitable-booking-sidebar {
        max-width: 100%;
    }

    .hospitable-property-title {
        font-size: 28px;
    }

    .hospitable-property-header,
    .hospitable-property-amenities-preview {
        padding-bottom: 25px;
    }

    .hospitable-property-overview,
    .hospitable-property-description {
        padding-bottom: 35px;
    }

    .hospitable-overview-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .hospitable-overview-card {
        padding: 18px 14px;
    }

    .hospitable-overview-icon {
        font-size: 26px;
    }

    .hospitable-reviews-arrow {
        border-radius: 50px !important;
        padding: 12px 15px !important;
    }

    .hospitable-overview-value {
        font-size: 18px;
    }

    .hospitable-overview-inline {
        gap: 10px;
    }
}

/* Tablet Portrait (768px) */
@media screen and (max-width: 768px) {
    .hospitable-single-property .site-main {
        max-width: 100% !important;
    }


    .hospitable-property-content-wrapper {
        gap: 30px !important;
    }

    .hospitable-booking-sidebar {
        position: static !important;
        order: 2 !important;
        max-height: none !important;
    }

    .hospitable-property-content {
        order: 1 !important;
    }

    .hospitable-overview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }

    .hospitable-amenities-preview-list {
        grid-template-columns: 1fr 1fr !important;
        display: grid !important;
    }

    .hospitable-reviews-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .hospitable-reviews-arrows {
        gap: 10px;
    }

    .hospitable-reviews-arrow {
        font-size: 14px;
    }

    .hospitable-booking-sidebar .hospitable-calendar-wrapper iframe {
        min-height: 600px;
    }
}

/* Mobile (480px) */
@media screen and (max-width: 480px) {
    .hospitable-property-wrapper {
        padding: 0 10px;
    }



    .hospitable-property-header,
    .hospitable-property-overview,
    .hospitable-property-description,
    .hospitable-property-amenities-preview,
    .hospitable-property-reviews {
        padding-bottom: 25px !important;
        margin: 0 !important;
    }

    .hospitable-property-title {
        font-size: 24px;
    }

    .hospitable-property-overview h2,
    .hospitable-property-description h2,
    .hospitable-property-amenities-preview h2,
    .hospitable-property-reviews h2 {
        font-size: 20px !important;
        margin-bottom: 20px;
    }

    .hospitable-overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        display: grid !important;
        gap: 10px !important;
    }

    .hospitable-overview-card {
        padding: 16px 12px !important;
        flex-direction: column !important;
        display: flex !important;
        gap: 10px !important;
    }

    .hospitable-overview-icon {
        font-size: 21px;

    }

    .hospitable-overview-label {
        font-size: 16px;
    }

    .hospitable-overview-value {
        font-size: 18px;
    }

    .hospitable-overview-inline {
        gap: 10px;
    }

    .hospitable-amenities-preview-list {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    .hospitable-review-card {
        padding: 20px;
    }

    .hospitable-reviews-arrows {
        gap: 8px;
    }

    .hospitable-reviews-arrow {
        font-size: 12px;
    }

    .hospitable-booking-card {
        padding: 20px 0;
        border: 1px solid #e5e7eb;
    }

    .hospitable-modal-card {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .hospitable-modal-header {
        padding: 24px 24px 16px;
    }

    .hospitable-modal-title {
        font-size: 20px;
    }

    .hospitable-modal-body {
        padding: 20px 24px 24px;
    }

    .hospitable-modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .hospitable-review-modal-meta {
        gap: 12px;
    }

    .hospitable-review-modal-info {
        gap: 12px;
    }

    .hospitable-review-full-content {
        font-size: 16px;
    }

    .hospitable-lightbox-prev,
    .hospitable-lightbox-next {
        width: 38px !important;
        height: 38px !important;
    }

    .hospitable-lightbox-close {
        width: 38px !important;
        height: 38px !important;
    }
}

/* Extra Small (360px) */
@media screen and (max-width: 360px) {
    .hospitable-overview-grid {
        grid-template-columns: 1fr;
    }

    .hospitable-reviews-header {
        flex-direction: column;
    }
}

/* ========================================
   Accessibility
======================================== */

/* Focus States */
.hospitable-overview-card:focus-visible,
.hospitable-review-card:focus-visible {
    outline: 3px solid rgba(0, 102, 204, 0.3);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .hospitable-overview-card,
    .hospitable-read-more-btn,
    .hospitable-review-card,
    .hospitable-modal,
    .hospitable-modal-card,
    .hospitable-modal-close,
    .hospitable-reviews-slider {
        transition: none;
    }

    .hospitable-overview-card:hover,
    .hospitable-read-more-btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .hospitable-booking-sidebar {
        display: none;
    }


    .hospitable-modal {
        display: none;
    }
}