.fit-image {
    width: 100%;
    height: 514px;
    object-fit: cover !important;
}
.page-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all .4s .2s ease-in-out;
    transition: all .4s .2s ease-in-out;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}
.page-loading.active {
    opacity: 1;
    visibility: visible;
}
.page-loading-inner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
    opacity: 0;
}
.page-loading.active > .page-loading-inner {
    opacity: 1;
}
.page-loading-inner > span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #666276;
}
.page-spinner {
    display: inline-block;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: .75rem;
    vertical-align: text-bottom;
    border: .15em solid #bbb7c5;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner .75s linear infinite;
    animation: spinner .75s linear infinite;
}
/* Monsef css */
@-webkit-keyframes spinner {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spinner {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
.hashtag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
    padding: 0;
}
.hashtag-list li {
    margin-right: 15px;
    margin-bottom: 5px;
    background-color: #fff;
    padding: 3px 15px;
    border-radius: .75rem;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    /*border:1px solid #3838382e ;*/
    direction: rtl;
}
.hashtag-list li a {
    color: #e85639;
    text-decoration: none;
}
.hashtag-list li:hover {
    background-color: #eee;
}
.page-wrapper {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (min-width: 768px) {
    .page-wrapper {
        padding-top: 5rem;
    }
}
/* Interactive Property Gallery */
.property-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Desktop Gallery Layout */
.airbnb-gallery-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    height: 480px;
}

.airbnb-gallery-main {
    position: relative;
    overflow: hidden;
}

.gallery-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slider {
    width: 100%;
    height: 100%;
}

.gallery-slide {
    width: 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.gallery-slider-container:hover .gallery-nav {
    opacity: 1;
    visibility: visible;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

.gallery-nav i {
    font-size: 18px;
    color: #222;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Side Grid Thumbnails */
.airbnb-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.airbnb-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.airbnb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.airbnb-gallery-item:hover img {
    transform: scale(1.05);
}

.airbnb-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.airbnb-gallery-last:hover .airbnb-gallery-overlay {
    opacity: 1;
}

.airbnb-show-all-btn {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

/* Mobile Gallery */
.mobile-gallery {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-gallery-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.mobile-gallery-slider {
    width: 100%;
    height: 100%;
}

.mobile-gallery-slide {
    width: 100%;
    height: 100%;
}

.mobile-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Navigation */
.mobile-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-gallery-nav:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-gallery-nav-prev {
    left: 12px;
}

.mobile-gallery-nav-next {
    right: 12px;
}

.mobile-gallery-nav i {
    font-size: 16px;
    color: #222;
}

/* Mobile Indicators */
.mobile-gallery-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.mobile-gallery-dot,
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
    margin: 0;
}

.mobile-gallery-dot:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid #FF385C;
    outline-offset: 2px;
}

.mobile-gallery-dot.active,
.swiper-pagination-bullet-active {
    background: white;
}

/* Mobile Controls */
.mobile-gallery-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.mobile-gallery-counter {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.mobile-show-all-btn {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Swiper Slider Customizations */
.swiper,
.gallery-slider,
.mobile-gallery-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide,
.gallery-slide,
.mobile-gallery-slide {
    width: 100%;
    height: 100%;
}

.swiper-button-prev,
.swiper-button-next,
.gallery-nav,
.mobile-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    opacity: 0;
    visibility: hidden;
}

.gallery-slider-container:hover .swiper-button-prev,
.gallery-slider-container:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.swiper-button-prev {
    left: 16px;
}

.swiper-button-next {
    right: 16px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    color: #222;
}

.swiper-pagination {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
}


/* Touch and Swipe Enhancements */
.gallery-slider,
.mobile-gallery-slider {
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Gallery Image Buttons */
.gallery-image-btn {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
    position: relative;
}

.gallery-image-btn:focus {
    outline: 2px solid #FF385C;
    outline-offset: 2px;
}

.gallery-image-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image-btn:hover img {
    transform: scale(1.02);
}

.mobile-gallery-image-btn {
    border-radius: 0;
}

.mobile-gallery-image-btn img {
    border-radius: 0;
}

/* Prevent image dragging */
.gallery-slide img,
.mobile-gallery-slide img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Loading states */
.gallery-slide img,
.mobile-gallery-slide img {
    background: #f8f9fa;
    transition: opacity 0.3s ease;
}

.gallery-slide img[loading="lazy"],
.mobile-gallery-slide img[loading="lazy"] {
    opacity: 0;
}

.gallery-slide img[loading="lazy"].loaded,
.mobile-gallery-slide img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .property-gallery-container {
        padding: 0 16px;
    }

    .mobile-gallery {
        height: 250px;
        border-radius: 8px;
    }

    .mobile-gallery-nav {
        width: 32px;
        height: 32px;
    }

    .mobile-gallery-nav i {
        font-size: 14px;
    }

    .mobile-gallery-nav-prev {
        left: 8px;
    }

    .mobile-gallery-nav-next {
        right: 8px;
    }

    .mobile-gallery-controls {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .mobile-gallery-indicators {
        bottom: 50px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-nav,
    .mobile-gallery-nav {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Focus states for accessibility */
.gallery-nav:focus,
.mobile-gallery-nav:focus,
.swiper-button-prev:focus,
.swiper-button-next:focus,
.mobile-gallery-dot:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid #FF385C;
    outline-offset: 2px;
}

/* Animation improvements */
.gallery-slide,
.mobile-gallery-slide {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Thumbnail hover effects */
.airbnb-gallery-item {
    transition: all 0.3s ease;
}

.airbnb-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#property-gallery a,
#property-slider a {
    display: block;
    cursor: zoom-in;
}

#property-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: .5rem;
}

/* Property Header Styles */
.property-header {
    padding: 24px 0;
}

.property-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #222;
}

.property-location {
    font-size: 14px;
    color: #717171;
}

.property-badges .badge {
    font-size: 12px;
    padding: 4px 8px;
}

.property-actions .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.property-actions .btn:hover {
    background-color: #f7f7f7;
}

/* Content Sections */
.property-content {
    padding-right: 40px;
}

/* Main content section container */
.container .row {
    position: relative;
}

.host-section .host-avatar {
    flex-shrink: 0;
}

.description-section .property-description {
    line-height: 1.6;
    color: #222;
}

.room-card {
    background: #f7f7f7;
    border: 1px solid #dddddd !important;
    transition: all 0.2s ease;
}

.room-card:hover {
    background: #f0f0f0;
    border-color: #b0b0b0 !important;
}

.amenity-item {
    padding: 8px 0;
    font-size: 16px;
}

.amenity-item i {
    font-size: 20px;
    width: 24px;
}

/* Booking Sidebar */
.booking-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Ensure the sidebar container has proper positioning context */
.booking-sidebar-container {
    position: relative;
    height: fit-content;
    min-height: 100%;
}

/* Prevent sidebar from extending beyond its container */
@media (min-width: 992px) {
    .booking-sidebar {
        position: sticky;
        top: 100px;
        bottom: 0;
        height: fit-content;
        max-height: calc(100vh - 120px);
    }

    /* Ensure proper containment within the parent section */
    .container .row {
        align-items: flex-start;
    }
}

@media (max-width: 991.98px) {
    .property-content {
        padding-right: 0;
    }

    .booking-sidebar {
        position: static !important;
        padding-left: 0;
        margin-top: 40px;
        max-height: none;
        overflow-y: visible;
        width: auto !important;
        top: auto !important;
    }

    .booking-sidebar-container {
        position: static;
        height: auto;
    }

    .airbnb-gallery-container {
        padding: 0 16px;
    }
}
.navbar {
    color: #232A3B !important;
    backdrop-filter: blur(5px);
}
.navbar-expand-lg {
    background-color: rgba(255, 255, 255, 0.7) !important;
}
.navbar-light {
    background-color: rgba(255, 255, 255, 0.7) !important;
}
.navbar-light.navbar-stuck {
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}
#share-popup {
    z-index: 1055;
    max-width: 90%;
}

/* Booking Card Styles */
.booking-card .card {
    border: 1px solid #dddddd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.price-header .price-amount {
    font-size: 22px;
    color: #222;
}

.price-header .price-period {
    font-size: 16px;
}

.commission-info {
    font-size: 13px;
    line-height: 1.4;
}

.date-inputs .form-control {
    font-size: 14px;
    color: #222;
}

.date-inputs .form-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guests-input .form-select {
    font-size: 14px;
    color: #222;
}

.pricing-breakdown {
    padding-top: 16px;
    border-top: 1px solid #dddddd;
}

.pricing-breakdown .text-decoration-underline {
    text-decoration: underline;
    cursor: pointer;
}

.property-quick-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.contact-info .btn {
    border-radius: 8px;
    font-weight: 600;
}

/* Mobile Bottom Bar */
@media (max-width: 767.98px) {
    .mobile-booking-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #dddddd;
        padding: 16px 24px;
        z-index: 1000;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    }

    .mobile-booking-bar .price-display {
        font-size: 18px;
        font-weight: 600;
        color: #222;
    }

    .mobile-booking-bar .price-period {
        font-size: 14px;
        color: #717171;
    }

    body {
        padding-bottom: 80px;
    }
}

/* Enhanced Gallery Styles */
.airbnb-gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.airbnb-gallery a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.airbnb-gallery a:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

/* Map Section Styles */
.map-container {
    border: 1px solid #dddddd;
    overflow: hidden;
}

.map-info {
    font-size: 14px;
}

.map-info .btn {
    font-size: 14px;
    padding: 6px 12px;
}

/* Responsive Improvements */
@media (max-width: 575.98px) {
    .property-title {
        font-size: 22px;
    }

    .property-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .property-actions .btn {
        padding: 4px 8px;
        font-size: 14px;
    }

    .airbnb-gallery {
        height: 300px;
        border-radius: 8px;
    }

    .property-header {
        padding: 16px 0;
    }

    .host-section .host-avatar {
        width: 48px;
        height: 48px;
    }

    .room-card {
        margin-bottom: 12px;
    }

    .amenities-section .row {
        gap: 8px;
    }
}

/* Loading and Animation Improvements */
.airbnb-gallery img {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.booking-card .card {
    transition: box-shadow 0.3s ease;
}

.booking-card .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn {
    transition: all 0.2s ease;
}

.amenity-item {
    transition: background-color 0.2s ease;
    border-radius: 8px;
    padding: 12px 8px;
}

.amenity-item:hover {
    background-color: #f8f9fa;
}

/* Enhanced Typography */
.property-content h3 {
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
}

.property-content p {
    line-height: 1.6;
    color: #484848;
}

/* Badge Improvements */
.property-badges .badge {
    border-radius: 20px;
    font-weight: 500;
    padding: 6px 12px;
}

/* Form Enhancements */
.form-control:focus {
    border-color: #FF385C;
    box-shadow: 0 0 0 0.2rem rgba(255, 56, 92, 0.25);
}

.btn-primary {
    background-color: #FF385C;
    border-color: #FF385C;
}

.btn-primary:hover {
    background-color: #E31C5F;
    border-color: #E31C5F;
}

.btn-outline-primary {
    color: #FF385C;
    border-color: #FF385C;
}

.btn-outline-primary:hover {
    background-color: #FF385C;
    border-color: #FF385C;
}

/* PhotoSwipe Customizations */
.pswp {
    --pswp-bg: rgba(0, 0, 0, 0.9);
    --pswp-placeholder-bg: #222;
    --pswp-root-z-index: 100000;
}

.pswp__button {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.pswp__button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.pswp__button--close {
    top: 20px;
    right: 20px;
}

.pswp__button--arrow {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
}

.pswp__button--arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* RTL support for PhotoSwipe */
[dir="rtl"] .pswp__button--arrow--left {
    right: 20px;
    left: auto;
}

[dir="rtl"] .pswp__button--arrow--right {
    left: 20px;
    right: auto;
}

[dir="rtl"] .pswp__button--close {
    left: 20px;
    right: auto;
}

/* Custom caption styling */
.pswp__caption__center {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

/* Loading state improvements */
.pswp__img {
    transition: opacity 0.3s ease;
}

.pswp__img--placeholder {
    background: #f8f9fa;
}
