/* Airbnb Style Gallery */
.airbnb-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 400px;
}

.gallery-main {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-grid {
    width: 50%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding-left: 8px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.show-all-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.show-all-btn:hover {
    background: #f7f7f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.mobile-slider {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.mobile-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

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

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

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

.slider-dot.active {
    background: white;
}

/* Modal Styles - Full Screen Gallery */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.modal-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px 120px;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}


/* Progress Indicators */
.scroll-progress {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(56, 182, 255, 0.2);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--dark));
    width: 0%;
    transition: width 0.3s ease;
    z-index: 9999;
}

/* Touch-friendly navigation on mobile */
@media (max-width: 768px) {
    .modal-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(15px);
    }

    .modal-prev {
        left: 15px;
    }

    .modal-next {
        right: 15px;
    }
}

/* Hide arrows temporarily during touch interaction */
.modal-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
}

.modal-counter {
    text-align: center;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.modal-thumbnail {
    min-width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.modal-thumbnail.active {
    border-color: white;
    opacity: 1;
}

.modal-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Info Styles */
.property-info {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.property-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.property-location {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.property-features {
    margin-bottom: 1.5rem;
}

.feature-badge {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.property-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.property-description {
    color: #484848;
    line-height: 1.6;
    font-size: 16px;
}

.icon-aminity {
    width: 2rem;
}

/* UX Improvements - Updated Colors */
:root {
    --primary: #38B6FF;
    --secondary: #0E2E50;
    /*FF6922  */
    --light: #effcfd;
    --dark: #0E2E50;
}

.property-cover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-cover img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.property-cover:hover img {
    transform: scale(1.05);
}

/* Ensure proper sizing on different screen sizes */
@media (min-width: 768px) {
    .property-cover img {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .property-cover img {
        height: 280px;
    }
}

/* Loading States */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Improved Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 182, 255, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 182, 255, 0.4);
    color: white;
}

/* Interactive Elements */
.feature-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(56, 182, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 182, 255, 0.5);
}

/* Smooth Scrolling Sections - Fixed to avoid conflicts with WOW.js */
.section-fade-in {
    /* Removed opacity and transform to prevent conflicts with WOW.js */
    /* All elements should be visible by default */
    opacity: 1;
    visibility: visible;
}

/* Enhanced Property Info */
.property-info-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.property-info-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--dark), var(--secondary));
}

/* Fix property info layout - ensure image stays beside text */
.property-info-enhanced .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.property-info-enhanced .col-lg-8,
.property-info-enhanced .col-md-7 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
}

.property-info-enhanced .col-lg-4,
.property-info-enhanced .col-md-5 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

@media (max-width: 991.98px) {
    .property-info-enhanced .col-lg-8,
    .property-info-enhanced .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    .property-info-enhanced .col-md-7,
    .property-info-enhanced .col-md-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Specific fixes for property show page layout */
.property-info-enhanced .align-items-center {
    align-items: center !important;
}

.property-info-enhanced .row.align-items-center {
    min-height: 300px;
}

/* Property title and info styling */
.property-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.property-location {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.property-features {
    margin-bottom: 1.5rem;
}

.feature-badge {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.property-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Responsive adjustments for property info */
@media (max-width: 991.98px) {
    .property-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .property-price {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .property-info-enhanced .row.align-items-center {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .property-title {
        font-size: 1.75rem;
    }

    .feature-badge {
        margin-bottom: 8px;
        display: block;
        text-align: center;
        margin-right: 0;
    }
}

/* Amenities Grid Enhancement */
.amenity-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    cursor: pointer;
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.amenity-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.amenity-icon-wrapper svg {
    color: white !important;
    width: 24px !important;
    height: 24px !important;
}

/* Floating Action Button */
.fab-gallery {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(56, 182, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    color: white;
    font-size: 24px;
}

.fab-gallery:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(56, 182, 255, 0.6);
}

/* Contact Cards Enhancement */
.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(56, 182, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: block;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 182, 255, 0.1), transparent);
    transition: left 0.6s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(56, 182, 255, 0.2);
    text-decoration: none;
    color: inherit;
    border-color: var(--primary);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-email .contact-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #0084ff 100%);
    color: white;
}

.contact-phone .contact-icon {
    background: linear-gradient(135deg, #00d4aa 0%, var(--secondary) 100%);
    color: white;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-card h6 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-card p {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.contact-card:hover p {
    color: var(--dark);
}

.contact-card small {
    font-size: 13px;
    color: #666 !important;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-card:hover small {
    opacity: 1;
    color: var(--primary) !important;
}

/* Map Enhancement */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .airbnb-gallery {
        display: none !important;
    }

    .gallery-main {
        display: none !important;
    }

    .gallery-grid {
        display: none !important;
    }

    .show-all-btn {
        display: none !important;
    }

    .mobile-gallery {
        display: block !important;
    }

    .property-cover img {
        height: 200px;
    }

    .property-title {
        font-size: 22px;
    }

    .modal-thumbnails {
        gap: 4px;
    }

    .modal-thumbnail {
        min-width: 60px;
        height: 45px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-footer {
        padding: 15px;
    }

    .property-info-enhanced {
        padding: 24px;
        margin-bottom: 24px;
    }

    .property-cover img {
        height: 220px;
        margin-top: 20px;
    }

    .amenity-item {
        padding: 16px;
    }

    .contact-card {
        padding: 24px;
        margin-bottom: 16px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .contact-card h6 {
        font-size: 16px;
    }

    .contact-card p {
        font-size: 14px;
    }

    .fab-gallery {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}
