/* 
   ==========================================================================
   PREMIUM PROPERTY DETAIL PAGE STYLES
   Scoped specifically to avoid conflicts with other pages
   Based on Rent-a-Kent elite design references.
   ========================================================================== 
*/

.property-detail-page {
    --brand-navy: #002D5B;
    --brand-tan: #f7f3eb;
    --text-main: #111111;
    --text-muted: #666666;
    --border-light: #f0f0f0;
    --radius-premium: 15px;
    --font-heading: 'Outfit', sans-serif;
    /* Assuming Outfit or similar modern font is available */
}

.property-detail-page * {
    box-sizing: border-box;
}

.pdp-policy-notice p {
    font-size: 13px;
    line-height: 1.7;
    font-family: 'Montserrat';
}

/* Hero Section */
.pdp-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.pdp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.pdp-hero-title {
    position: relative;
    z-index: 2;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    /* max-width: 900px; */
    padding: 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Breadcrumb Bar */
.pdp-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
}

.pdp-breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.pdp-breadcrumb li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.pdp-breadcrumb li a:hover {
    color: var(--text-main);
}

.pdp-breadcrumb .sep {
    margin: 0 12px;
    font-size: 10px;
    color: #ccc;
}

.pdp-breadcrumb li.active {
    color: var(--text-main);
    font-weight: 600;
}

/* Gallery Grid */
.pdp-gallery-container {
    margin-top: 30px;
}

.pdp-gallery-row {
    display: flex;
    gap: 15px;
    height: 500px;
}

.pdp-gallery-main {
    flex: 0 0 calc(66.66% - 10px);
    border-radius: var(--radius-premium);
    overflow: hidden;
}

.pdp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pdp-gallery-main img:hover {
    transform: scale(1.02);
}

.pdp-gallery-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdp-gallery-thumb {
    flex: 1;
    border-radius: var(--radius-premium);
    overflow: hidden;
}

.pdp-gallery-thumb:nth-child(1) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px 100px 7px 7px;
}

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

/* Main Content Area */
.pdp-content-section {
    padding: 50px 0;
}

.pdp-host-meta {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.pdp-host-meta a {
    color: var(--text-main);
    text-decoration: underline;
    font-weight: 500;
}

.pdp-main-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.pdp-type-info {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.pdp-highlights-box {
    background: #f7f3eb;
    padding: 30px;
    border-radius: 12px;
    margin-top: 25px;
}

.pdp-highlight-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.pdp-highlight-item:last-child {
    margin-bottom: 0;
}

.pdp-highlight-icon {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdp-highlight-item i {
    font-size: 28px;
    color: #1d2d36;
}

.pdp-highlight-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1d2d36;
    line-height: 1;
}


.pdp-main-box {
    padding: 40px;
    background: #fff;
    margin-bottom: 30px;
}

.pdp-amenities-box {
    padding: 40px;
    background: #fff;
    margin-bottom: 40px;
}

.pdp-border {
    border: 1px solid #dbe0ed !important;
    border-radius: 12px;
}



/* Amenities Section */
.pdp-amenities-box {
    padding: 40px;
    background: #fff;
}

.pdp-section-title {
    font-size: 32px;
    color: #1d2d36;
    font-weight: 700;
    margin-bottom: 30px;
}

.pdp-amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 10px;
}

.pdp-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1d2d36;
}

.pdp-amenity-item i {
    font-size: 12px;
    color: #1d2d36;
}

.pdp-btn-black {
    background: #1d2d36;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pdp-btn-black:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.pdp-amenity-item i {
    width: 18px;
    text-align: center;
    color: #000;
    font-size: 14px;
}

.pdp-btn-black {
    background: #1d2d36;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 300;
    font-size: 14px;
    transition: all 0.3s;
    letter-spacing: 2px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.pdp-btn-black:hover {}

/* Sticky Booking Card */
.pdp-booking-card {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #dbe0ed;
    text-align: center;
}

.pdp-input-box {
    background: #fff;
    border: 1px solid #1d2d36;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 15px;
}

.pdp-input-box i {
    color: #1d2d36;
    font-size: 18px;
    margin-right: 12px;
}

.pdp-field {
    background: transparent;
    border: none;
    width: auto;
    font-size: 18px;
    /* font-weight: 600; */
    color: #1d2d36;
    outline: none;
    cursor: pointer;
    text-align: center;
    padding: 0;
}

.pdp-field::placeholder {
    color: #1d2d36;
}

.combined-guest-box span {
    font-size: 18px;
    color: #1d2d36;
    /* font-weight: 600; */
}

.pdp-policy-notice {
    margin-top: 40px;
    text-align: center;
}

.policy-item {
    margin-bottom: 15px;
}

.policy-item h6 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.policy-item p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.pdp-reserve-btn {
    background: #1d2d36;
    color: #fff;
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* Similar Properties Section */
.pdp-similar-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}

.pdp-property-card {
    border-radius: var(--radius-premium);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.pdp-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pdp-card-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.pdp-card-content {
    padding: 20px;
}

.pdp-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.pdp-card-specs {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.pdp-card-specs span i {
    margin-right: 5px;
}

/* Fancybox Overrides to fix close button and popup size */
.fancybox-content {
    max-width: 90% !important;
    max-height: 85% !important;
    border-radius: 10px;
    overflow: hidden;
}

.fancybox-button--close {
    background: rgba(0, 0, 0, 0.5) !important;
    padding: 10px !important;
    border-radius: 50% !important;
    right: 20px !important;
    top: 20px !important;
    width: 44px !important;
    height: 44px !important;
}

/* Slick Carousel Styles */
.pdp-similar-carousel .slick-slide {
    padding: 0 10px;
}

.pdp-similar-carousel .slick-list {
    margin: 0 -10px;
}

.pdp-similar-carousel .slick-prev,
.pdp-similar-carousel .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pdp-similar-carousel .slick-prev:hover,
.pdp-similar-carousel .slick-next:hover {
    background: #000;
}

.pdp-similar-carousel .slick-prev:before,
.pdp-similar-carousel .slick-next:before {
    color: #000;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    opacity: 1;
}

.pdp-similar-carousel .slick-prev:before {
    content: "\f053";
}

.pdp-similar-carousel .slick-next:before {
    content: "\f054";
}

.pdp-similar-carousel .slick-prev:hover:before,
.pdp-similar-carousel .slick-next:hover:before {
    color: #fff;
}

.pdp-similar-carousel .slick-prev {
    left: -40px;
}

.pdp-similar-carousel .slick-next {
    right: -20px;
}

/* Responsive Overrides */
@media (max-width: 1199px) {
    .pdp-gallery-row {
        height: 500px;
    }

    .pdp-highlights-box {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .pdp-gallery-row {
        height: 400px;
    }

    .pdp-gallery-main {
        flex: 0 0 calc(60% - 10px);
    }

    .pdp-highlights-box {
        flex-wrap: wrap;
    }

    .pdp-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdp-similar-carousel .slick-prev {
        left: 5px;
    }

    .pdp-similar-carousel .slick-next {
        right: 5px;
    }
}

@media (max-width: 767px) {
    .pdp-hero {
        height: 350px;
    }

    .pdp-hero-title {
        font-size: 32px;
    }

    .pdp-gallery-row {
        flex-direction: column;
        height: auto;
    }

    .pdp-gallery-main,
    .pdp-gallery-side {
        flex: none;
        width: 100%;
    }

    .pdp-gallery-side {
        display: none;
    }

    /* Hide thumbs on mobile for cleaner look */
    .pdp-highlights-box {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }

    .pdp-amenities-grid {
        grid-template-columns: 1fr;
    }

    .pdp-booking-card {
        margin-top: 40px;
        position: static;
    }
}




/* Force Datepicker Visibility & Positioning */
.datepicker {
    z-index: 99999999 !important;
    background: #fff !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
}

.datepicker--open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fallback for missing SVG icons */
.datepicker__month-button--prev,
.datepicker__month-button--next {
    font-weight: bold;
    color: #333;
    text-indent: 0 !important;
    background: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.datepicker__month-button--prev:after {
    content: '<';
}

.datepicker__month-button--next:after {
    content: '>';
}

@media (max-width: 767px) {
    .datepicker {
        width: 95vw !important;
        left: 2.5vw !important;
    }
}

/* Similar Properties New Style */
.home-property-card-new {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.home-property-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pdp-card-image-box {
    position: relative;
    padding-top: 100%;
    /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.pdp-card-img-fix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-card-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdp-card-title-new {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdp-card-title-new a {
    color: #333;
    text-decoration: none;
}

.pdp-card-amenities-new {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}

.pdp-card-amenities-new span i {
    margin-right: 5px;
    color: #999;
}

/* Amenities Modal Redesign */
.pdp-amenities-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
}

.pdp-amenities-modal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdp-amenities-modal .modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #1d2d36;
    font-family: var(--font-heading);
}

.pdp-amenities-modal .btn-close {
    background-size: 15px;
    opacity: 0.8;
    transition: all 0.3s;
}

.pdp-amenities-modal .btn-close:hover {
    transform: rotate(90deg);
    opacity: 1;
}

.pdp-amenities-modal .modal-body {
    padding: 40px;
}

.pdp-amenity-category {
    margin-bottom: 40px;
}

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

.pdp-amenity-category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #1d2d36;
    margin-bottom: 25px;
}

.pdp-amenity-category-title i {
    font-size: 20px;
    color: #1d2d36;
}

.pdp-amenity-new-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 30px;
}

.pdp-amenity-item-new {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    color: #444;
    line-height: 1.4;
}

.pdp-amenity-item-new i {
    color: #1d2d36;
    font-size: 18px;
    margin-top: 2px;
}

@media (max-width: 991px) {
    .pdp-amenity-new-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .pdp-amenity-new-list {
        grid-template-columns: 1fr;
    }
    
    .pdp-amenities-modal .modal-body {
        padding: 30px 20px;
    }
    
    .pdp-amenities-modal .modal-header {
        padding: 20px;
    }
}