@import url('../components-pengunjung/navbar.css');
@import url('../components-pengunjung/sticky-search.css');
@import url('../components-pengunjung/property-card.css');
@import url('../components-pengunjung/image-optimization.css');
@import url('../global-css/footer-pengunjung.css');

@import url('../pages-pengunjung/pengunjung-properti.css');
@import url('../components-pengunjung/survey-popup.css');
@import url('../../vendor/leaflet/leaflet.css');

/* ========= DISABLED PROPERTY STYLES ========= */
.property-disabled {
    position: relative;
}

.property-disabled .gallery-main-large img,
.property-disabled .gallery-grid-item img,
.property-disabled .slide img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.property-disabled .booking-card {
    opacity: 0.7;
    pointer-events: none;
}

.property-disabled .btn-reserve,
.property-disabled .btn-survey,
.property-disabled .btn-chat,
.property-disabled .btn-whatsapp,
.property-disabled .btn-mobile {
    background-color: var(--gray3) !important;
    border-color: var(--gray3) !important;
    color: var(--gray4) !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.property-inactive-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Verification status - different color */
.property-inactive-notice:has(.notice-icon:contains("⏳")) {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
}

.property-inactive-notice:has(.notice-icon:contains("⏳"))::before {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 193, 7, 0.05) 10px,
        rgba(255, 193, 7, 0.05) 20px
    );
}

.property-inactive-notice:has(.notice-icon:contains("⏳")) .notice-title {
    color: #f57f17;
}

.property-inactive-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(220, 53, 69, 0.05) 10px,
        rgba(220, 53, 69, 0.05) 20px
    );
    z-index: 1;
}

.property-inactive-notice .notice-content {
    position: relative;
    z-index: 2;
}

.property-inactive-notice .notice-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
    display: block;
}

.property-inactive-notice .notice-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0.75rem;
}

.property-inactive-notice .notice-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile disabled styles */
@media (max-width: 768px) {
    .property-disabled .mobile-buttons-row {
        opacity: 0.7;
        pointer-events: none;
    }
    
    .property-disabled .mobile-agent-actions-static button {
        background-color: var(--gray3) !important;
        color: var(--gray4) !important;
        pointer-events: none;
    }
    
    .property-inactive-notice {
        margin: 1rem;
        padding: 1rem;
    }
    
    .property-inactive-notice .notice-title {
        font-size: 1.25rem;
    }
    
    .property-inactive-notice .notice-description {
        font-size: 0.9rem;
    }
}

/* ========= PROPERTY PAGE STYLES ========= */

.property-main {
    min-height: 100vh;
    background-color: var(--base);
    padding-top: 0;
}

.property-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========= DESKTOP LAYOUT ========= */
.property-desktop {
    display: block !important;
    width: 100%;
    overflow: visible; /* Allow sticky positioning to work */
}

.property-mobile {
    display: none !important;
}

/* ========= PHOTO GALLERY ========= */
.property-gallery {
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
}

/* Desktop Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    width: 100%;
    position: relative;
    height: 400px; /* Fixed height untuk konsistensi */
    min-height: 380px;
    max-height: 450px;
}

.gallery-main-large {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: var(--gray1); /* Fallback background */
}

.gallery-main-large:hover {
    transform: scale(1.02);
}

.gallery-main-large .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Pastikan gambar tidak terdistorsi */
    min-height: 100%;
    background-color: var(--gray1);
}

.gallery-grid-small {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: 100%;
}

.gallery-grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    background-color: var(--gray1); /* Fallback background */
    /* Pastikan aspect ratio konsisten */
    aspect-ratio: 1 / 1; /* Square untuk thumbnail grid */
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    background-color: var(--gray1);
}

.gallery-grid-item:hover img {
    transform: scale(1.05);
}

.show-more-overlay {
    position: relative;
}

.show-more-photos {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 12px;
}



/* ========= PROPERTY ACTIONS ========= */
.property-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.property-actions .btn-share,
.property-actions .btn-wishlist {
    display: flex;
    align-items: center;
    width: 48px;
    height: 48px;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 50px;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.property-actions .btn-share:hover,
.property-actions .btn-wishlist:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-actions .btn-share svg,
.property-actions .btn-wishlist svg {
    font-size: 0.875rem;
    width: 16px;
    height: 16px;
}

/* Specific styling for share icon */
.property-actions .btn-share svg {
    color: #6b7280;
}

/* Specific styling for wishlist icon */
.property-actions .btn-wishlist svg {
    color: #6b7280;
}

.property-actions .btn-wishlist[data-wishlist="1"] svg {
    color: #ef4444;
}

/* ========= PROPERTY INFO SECTION ========= */
.property-info {
    display: flex; /* Change from grid to flex */
    gap: 2rem;
    align-items: flex-start;
    margin-top: 0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.property-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    flex: 2; /* Take 2/3 of space */
    min-height: 150vh; /* Force tall content for testing */
}

/* ========= PROPERTY HEADER ========= */
.property-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray2);
}

.property-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 2rem;
}

.property-title-info {
    flex: 1;
    min-width: 0;
}

.property-title-info h1 {
    font-size: 2.125rem;
    font-weight: 600;
    color: #222222;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #717171;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.property-location svg {
    color: var(--blue) !important;
    fill: #FF385C !important;
}

.icon-location {
    color: #FF385C !important;
    fill: #FF385C !important;
}

.property-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* ========= NEW BADGE SYSTEM ========= */
.property-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #222222;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.property-rating svg {
    color: #fbbf24 !important;
    font-size: 1rem;
}

.property-rating .rating-count {
    color: #717171;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: normal;
}

.property-rating .rating-count:hover {
    color: var(--blue);
}

/* ========= PROPERTY AVAILABILITY ========= */
.property-availability {
    margin-top: 1rem;
}

.availability-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid;
    background: white;
    transition: all 0.2s ease;
}

.availability-card.available {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.availability-card.full {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.availability-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.availability-card.available .availability-icon {
    color: #22c55e;
}

.availability-card.full .availability-icon {
    color: #ef4444;
}

.availability-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.availability-number {
    font-size: 16px;
    font-weight: 600;
    color: #15803d;
}

.availability-text {
    font-size: 13px;
    font-weight: 400;
    color: #4b5563;
}

.availability-card.full .availability-text {
    font-size: 13px;
    color: #dc2626;
}

/* ========= PROPERTY DESCRIPTION ========= */
.property-description {
    margin-bottom: 2.5rem;
}

.property-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.description-content {
    color: var(--gray);
    line-height: 1.6;
    font-size: 1rem;
}

.property-video {
    margin-top: 1.5rem;
}

.property-video h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px !important;
    background: #f8f9fa;
    -webkit-border-radius: 16px !important;
    -moz-border-radius: 16px !important;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px !important;
    -webkit-border-radius: 16px !important;
    -moz-border-radius: 16px !important;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

/* ========= FACILITIES SECTION ========= */
.property-facilities {
    margin-bottom: 2.5rem;
}

.property-facilities h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.facility-category {
    margin-bottom: 1.5rem;
}

.facility-category:last-child {
    margin-bottom: 0;
}

.facility-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--base);
    border-radius: 8px;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.facility-item svg {
    color: var(--blue);
    flex-shrink: 0;
}

/* ========= LOCATION SECTION ========= */
.property-location-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

/* ========= RULES SECTION ========= */
.property-rules-section {
    margin-bottom: 2.5rem;
}

.property-rules-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.property-rules-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.rules-content {
    color: var(--gray);
}

.rules-content .rules-section {
    margin-bottom: 1.5rem;
}

.rules-content .rules-section:last-child {
    margin-bottom: 0;
}

.rules-content .rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rules-content .rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--base);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rules-content .no-rules {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    font-style: italic;
}

.location-info {
    margin-bottom: 1.5rem;
}

.location-info p {
    margin-bottom: 0.5rem;
    color: var(--gray);
    line-height: 1.5;
}

.location-info strong {
    color: var(--black);
}

/* ========= CUSTOM MAP STYLING ========= */
/* Custom PapiKost Marker */
.papikost-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-icon {
    width: 40px;
    height: 40px;
    background: var(--blue);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.marker-icon svg {
    transform: rotate(45deg);
    color: white;
    width: 20px;
    height: 20px;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    opacity: 0.3;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* Facility Markers */
.facility-marker {
    background: transparent;
    border: none;
}

.facility-icon {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--blue);
}

/* Custom Popup Styling */
.leaflet-popup-content-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border: none;
    max-width: 220px !important;
    min-width: 180px !important;
}

.leaflet-popup-tip {
    background: white;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Fix popup content padding and sizing */
.papikost-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
    white-space: nowrap;
}

/* Ensure popup doesn't get cut off */
.leaflet-popup {
    margin-bottom: 20px;
}

/* Fix popup positioning to prevent cutoff */
.leaflet-popup-pane {
    z-index: 700;
}

.leaflet-map-pane {
    overflow: visible !important;
}

/* Responsive popup adjustments */
@media (max-width: 768px), 
       (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .leaflet-popup-content-wrapper {
        max-width: 200px !important;
        min-width: 160px !important;
    }
    
    .custom-popup {
        padding: 0.6rem 0.8rem;
        min-width: 140px;
        max-width: 180px;
    }
    
    .popup-title {
        font-size: 0.85rem;
    }
}

.custom-popup {
    padding: 0.8rem 1rem;
    min-width: 160px;
    max-width: 200px;
    box-sizing: border-box;
    text-align: center;
}

.popup-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
}

/* Removed unused popup styles - only showing title now */

/* Map Controls Styling */
.leaflet-control-zoom {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.leaflet-control-zoom a {
    background: white;
    border: none;
    color: var(--gray);
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    border-radius: 4px;
}

.leaflet-control-zoom a:hover {
    background: var(--base);
    color: var(--blue);
}

/* Attribution styling */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-size: 10px;
}

/* Map toolbar CSS removed - using buttons below map instead */

/* Enhanced Location Section */
.location-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray2);
    background: white;
    border-radius: 8px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--base);
}

.location-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive map adjustments */
@media (max-width: 768px), 
       (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .marker-icon {
        width: 32px;
        height: 32px;
    }
    
    .marker-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .marker-pulse {
        width: 32px;
        height: 32px;
    }
    
    .custom-popup {
        padding: 0.875rem;
        min-width: 180px;
    }
    
    .popup-title {
        font-size: 0.9rem;
    }
    
    .popup-address {
        font-size: 0.8rem;
    }

    /* Map toolbar removed - using buttons below map */

    .location-actions {
        gap: 0.5rem;
    }

    .location-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ========= SIDEBAR ========= */
.property-sidebar {
    flex: 1; /* Take 1/3 of space */
    position: relative;
    height: fit-content;
}

.sidebar-sticky {
    /* Remove sticky positioning - let JavaScript handle it */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    height: fit-content;
}

/* Ensure parent containers don't interfere */
.property-info {
    position: relative; /* Create stacking context for sticky */
}

/* ========= BOOKING CARD ========= */
.booking-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gray2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-info {
    padding-bottom: 1.5rem;
}

.price-toggle {
    display: flex;
    background: var(--base);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1rem;
}

/* Hide price toggle when only monthly price is available */
.price-toggle.monthly-only {
    display: none;
}

.price-toggle-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray);
}

.price-toggle-btn.active {
    background: white;
    color: var(--blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-display {
    position: relative;
    margin-bottom: 0.5rem;
}

.price-option {
    display: none;
    align-items: baseline;
    gap: 0.5rem;
}

.price-option.active {
    display: flex;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
}

.price-period {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

.price-secondary {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-additional {
    font-size: 0.875rem;
    color: var(--gray);
}

.price-additional-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gray2);
}

.price-additional-item:last-child {
    border-bottom: none;
}

.booking-availability {
    margin-top: 0.25rem;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.availability-status.available {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.availability-status.unavailable {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.availability-status svg {
    flex-shrink: 0;
}

.availability-text {
    font-size: 14px;
    font-weight: 400;
}

.availability-text strong {
    font-weight: 600;
}

.booking-actions {
    margin-top: 0.75rem;
}

/* Horizontal layout untuk Kostpreneur */
.booking-actions-horizontal {
    display: flex;
    gap: 0.625rem;
}

.booking-actions-horizontal .btn-reserve,
.booking-actions-horizontal .btn-survey {
    flex: 1;
}

/* Vertical layout untuk non-Kostpreneur */
.booking-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-actions-vertical .btn-survey {
    width: 100%;
}

.btn-reserve, .btn-survey {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-reserve {
    background: var(--yellow);
    color: var(--black);
    font-weight: 600;
}

.btn-reserve:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 230, 0, 0.35);
    color: #333;
    text-decoration: none;
}

.btn-reserve.disabled {
    background: var(--gray2);
    color: var(--gray);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-reserve.disabled:hover {
    background: var(--gray2);
    color: var(--gray);
}

.btn-survey {
    background: white;
    color: var(--blue);
    border: 1px solid var(--gray2);
}

.btn-survey:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 117, 187, 0.3);
    text-decoration: none;
}

/* Button Hierarchy */
.btn-reserve.primary {
    background: var(--yellow);
    color: var(--black);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 230, 0, 0.2);
}

.btn-reserve.primary:hover {
    background: #f5d700;
    box-shadow: 0 4px 16px rgba(255, 230, 0, 0.4);
}

.btn-survey.secondary {
    background: white;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    font-weight: 600;
}

.btn-survey.secondary:hover {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-reserve.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

.btn-reserve.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Icon styling in buttons */
.booking-actions button svg {
    flex-shrink: 0;
}

/* ========= RESERVATION INFO CARD ========= */
.reservation-info-card {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border: 1px solid #e1e7ff;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.reservation-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--blue), #60a5fa);
}

.reservation-info-card .info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.reservation-info-card .info-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.reservation-info-card .info-content p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* ========= AGENT CARD ========= */
.agent-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray2);
}

.agent-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agent-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.agent-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.agent-details p {
    font-size: 0.875rem;
    color: var(--gray);
}

.agent-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--gray2);
    background: white;
    border-radius: 8px;
    color: var(--gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-chat:hover {
    background: var(--blue);
    color: white;
}

.btn-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

/* ========= PHOTO MODAL ========= */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
}

.photo-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.photo-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    font-size: 1.5rem;
    font-weight: bold;
}

.photo-modal-body {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.photo-modal-main {
    flex: 1;
    max-width: 70vw;
}

.photo-modal-main img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.photo-modal-thumbnails {
    width: 200px;
    max-height: 80vh;
    overflow-y: auto;
}

.photo-thumbnails-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
    border-color: var(--blue);
}

/* ========= DESKTOP LAYOUT ========= */
@media (min-width: 1025px) {
    .property-main {
        padding-top: 80px;
    }
    
    .property-container {
        padding: 0 2rem;
    }
    
    .property-mobile {
        display: none;
    }
    
    .property-desktop {
        display: block;
    }
}

/* ========= TABLET LANDSCAPE (Desktop Layout) ========= */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .property-main {
        padding-top: 80px;
    }
    
    .property-container {
        padding: 0 1.5rem;
    }
    
    .property-mobile {
        display: none;
    }
    
    .property-desktop {
        display: block;
    }
    
    /* Optimize sticky sidebar for smaller tablet screen */
    .sidebar-sticky {
        top: 1rem; /* Closer to top on tablet */
        gap: 1rem; /* Smaller gap to fit better */
        max-height: calc(100vh - 2rem); /* Adjust height for tablet */
    }
    
    .property-info {
        gap: 1.5rem; /* Smaller gap between content and sidebar */
    }
    
    .booking-card,
    .agent-card {
        padding: 1.25rem; /* Slightly smaller padding for tablet */
    }
}

/* ========= MOBILE & TABLET PORTRAIT LAYOUT ========= */
@media (max-width: 768px), 
       (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .property-desktop {
        display: none !important;
    }
    
    .property-mobile {
        display: block !important;
    }
    
    .property-main {
        padding-top: 0;
        background-color: white;
    }
    
    .property-container {
        padding: 0;
    }

    /* ========= MOBILE GALLERY ========= */
    .mobile-gallery {
        position: relative;
        height: 60vh; /* Lebih besar untuk tampilan yang lebih baik */
        min-height: 300px; /* Minimal height */
        max-height: 450px; /* Maksimal height */
        overflow: hidden;
        margin-bottom: 0;
        background-color: var(--gray1); /* Fallback background */
    }
    
    /* Mobile Back Navigation */
    .mobile-nav-back {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
        z-index: 20;
        display: flex;
        align-items: center;
        padding: 0 1rem;
    }
    
    .back-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .back-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    /* Floating Action Buttons */
    .mobile-floating-actions {
        position: absolute;
        bottom: 8%;
        right: 1.5rem;
        transform: translateY(50%);
        z-index: 20;
        display: flex;
        flex-direction: row;
        gap: 12px;
    }
    
    .floating-share,
    .floating-wishlist {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    /* Share button specific color */
    .floating-share {
        color: var(--blue);
    }
    
    /* Wishlist button - no default color, let icon classes handle it */
    .floating-wishlist {
        color: inherit;
    }
    
    .floating-share:hover,
    .floating-wishlist:hover {
        background: white;
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    /* Override floating-wishlist color for proper heart icon colors */
    .floating-wishlist .icon-heart-outline {
        color: #6b7280 !important;
        stroke: #6b7280 !important;
    }
    
    .floating-wishlist .icon-heart {
        color: #e74c3c !important;
        fill: #e74c3c !important;
    }
    
    .floating-wishlist:hover .icon-heart-outline {
        color: #e74c3c !important;
        stroke: #e74c3c !important;
    }
    
    .mobile-slider {
        position: relative;
        height: 100%;
        overflow: hidden; /* Pastikan tidak ada overflow */
    }
    
    .slider-container {
        display: flex;
        height: 100%;
        transition: transform 0.3s ease;
    }
    
    .slide {
        min-width: 100%;
        width: 100%;
        height: 100%;
        cursor: pointer;
        position: relative;
        flex-shrink: 0; /* Pastikan slide tidak menyusut */
        overflow: hidden;
        background-color: var(--gray1); /* Fallback background */
    }
    
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: opacity 0.2s ease;
        display: block;
        /* Pastikan gambar mengisi penuh container */
        min-height: 100%;
        min-width: 100%;
    }
    
    .slide:active img {
        opacity: 0.9;
        transform: scale(0.98);
    }
    
    /* Add tap indicator for mobile */
    .slide::before {
        content: '👁️';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 10;
        pointer-events: none;
    }
    
    .slide:active::before {
        opacity: 1;
    }
    
    /* Counter Indicator */
    .slide-counter {
        position: absolute;
        bottom: 50px;
        left: 1.5rem;
        background: rgba(128, 128, 128, 0.8);
        color: white;
        padding: 6px 12px;
        border-radius: 16px;
        font-size: 0.8rem;
        font-weight: 500;
        backdrop-filter: blur(10px);
        z-index: 15;
    }

    /* ========= MOBILE HEADER ========= */
    .mobile-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        background: white;
        border-radius: 28px 28px 0 0;
        margin-top: -28px;
        position: relative;
        z-index: 10;
        margin-bottom: 0;
    }
    
    .mobile-title-section h1 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #000000;
        line-height: 1.3;
        margin: 0 0 0.75rem 0;
    }
    
    .mobile-share,
    .mobile-wishlist {
        width: 40px;
        height: 40px;
        border: 1px solid var(--gray2);
        background: white;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-wishlist .icon-heart {
        fill: var(--red) !important;
        color: var(--red) !important;
    }
    
    .mobile-wishlist .icon-heart-outline {
        stroke: var(--gray) !important;
        color: var(--gray) !important;
        fill: none !important;
    }
    
    .mobile-location {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #666;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .mobile-location svg {
        color: var(--blue) !important;
        fill: var(--blue) !important;
        width: 16px;
        height: 16px;
    }

    .mobile-location .icon-location {
        color: #FF385C !important;
        fill: #FF385C !important;
    }
}

@media (max-width: 768px), 
       (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .mobile-property-type {
        display: inline-flex;
        align-items: center;
        background: #f8f9fa;
        color: #495057;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 500;
        margin-bottom: 0.75rem;
        border: 1px solid #e9ecef;
    }

    /* ========= MOBILE META BADGES ========= */
    .mobile-meta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 0.75rem;
    }

    .mobile-badge {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .mobile-gender-badge--pria {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }

    .mobile-gender-badge--wanita {
        background: rgba(236, 72, 153, 0.1);
        color: #ec4899;
    }

    .mobile-gender-badge--campur {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
    }

    /* ========= MOBILE RATING ========= */
    .mobile-rating {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        color: #222222;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }

    .mobile-rating svg {
        color: #fbbf24 !important;
        font-size: 1rem;
    }

    .mobile-room-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
        color: #666;
    }

    .mobile-room-info span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .mobile-price {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-price-toggle {
        display: flex;
        background: var(--base);
        border-radius: 6px;
        padding: 2px;
    }
    
    /* Hide mobile price toggle when only monthly price is available */
    .mobile-price-toggle.monthly-only {
        display: none;
    }
    
    .mobile-toggle-btn {
        flex: 1;
        padding: 6px 12px;
        border: none;
        background: transparent;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--gray);
    }
    
    .mobile-toggle-btn.active {
        background: white;
        color: var(--blue);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-price-display {
        position: relative;
    }
    
    .mobile-price-option {
        display: none;
    }
    
    .mobile-price-option.active {
        display: block;
    }
    
    .mobile-price-main {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--black);
    }

    .mobile-availability {
        margin-top: 0.75rem;
    }

    .mobile-availability-card {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 6px;
        border: 1px solid;
        background: white;
    }

    .mobile-availability-card.available {
        border-color: rgba(34, 197, 94, 0.3);
        background: rgba(34, 197, 94, 0.05);
    }

    .mobile-availability-card.full {
        border-color: rgba(239, 68, 68, 0.3);
        background: rgba(239, 68, 68, 0.05);
    }

    .mobile-availability-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-availability-card.available .mobile-availability-icon {
        color: #22c55e;
    }

    .mobile-availability-card.full .mobile-availability-icon {
        color: #ef4444;
    }

    .mobile-availability-number {
        font-size: 14px;
        font-weight: 600;
        color: #15803d;
    }

    .mobile-availability-text {
        font-size: 12px;
        font-weight: 400;
        color: #4b5563;
    }

    .mobile-availability-card.full .mobile-availability-text {
        color: #dc2626;
    }

    /* ========= MOBILE AGENT SECTION ========= */
    .mobile-agent-section {
        padding: 0.5rem;
        background: white;
        border-top: 5px solid var(--gray2);
        border-bottom: 5px solid var(--gray2);
    }
    
    .mobile-agent-card {
        background: white;
        padding: 1rem;
    }
    
    .mobile-agent-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--black);
        margin: 0 0 1rem 0;
    }
    
    .mobile-agent-info-static {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .mobile-agent-avatar-static img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .mobile-avatar-placeholder-static {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--blue);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .mobile-agent-details-static {
        flex: 1;
    }
    
    .mobile-agent-details-static h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--black);
        margin: 0 0 0.25rem 0;
    }
    
    .mobile-agent-details-static p {
        font-size: 0.85rem;
        color: var(--gray);
        margin: 0;
    }
    
    .mobile-agent-actions-static {
        display: flex;
        gap: 0.5rem;
    }
    
    .mobile-btn-chat-static,
    .mobile-btn-whatsapp-static {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--gray2);
        background: white;
        border-radius: 8px;
        color: var(--gray);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-btn-chat-static:hover {
        background: var(--blue);
        border-color: var(--blue);
        color: white;
    }
    
    .mobile-btn-whatsapp-static:hover {
        background: #25d366;
        border-color: #25d366;
        color: white;
    }

    /* ========= MOBILE TABS ========= */
    .mobile-tabs {
        background: white;
        border-top: 1px solid var(--gray2);
        position: sticky;
        top: -20px;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: 0;
        padding: 0;
        border-radius: 0;
        margin-top: 0;
    }
    
    /* Mobile specific - tabs stick to top */
    @media (max-width: 768px), 
           (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
        .mobile-tabs {
            top: 0 !important;
        }
    }
    
    .tab-nav.sticky-nav {
        display: flex;
        overflow-x: auto;
        border-bottom: 1px solid var(--gray2);
        padding: 0 1rem;
        background: white;
        margin: 0;
    }
    
    .tab-btn {
        padding: 1rem 0.75rem;
        border: none;
        background: none;
        color: var(--gray);
        font-weight: 500;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        min-width: max-content;
    }
    
    .tab-btn.active {
        color: var(--blue);
        border-bottom-color: var(--blue);
        font-weight: 600;
    }
    
    .tab-btn:hover {
        color: var(--blue);
    }
    
    .mobile-content {
        padding: 0 0 100px 0;
        background: white;
        min-height: calc(100vh - 55vh);
        margin: 0;
    }
    
    .content-section {
        background: white;
        padding: 1.5rem 1rem;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .content-section:first-child {
        margin-top: 0;
        padding-top: 1.5rem;
        border-top: none;
    }
    
    /* Special handling for description tab to allow more scrolling */
    .content-section#description {
        scroll-margin-top: -60px;
    }
    
    .content-section:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--black);
        margin: 0 0 1.5rem 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .mobile-description {
        color: var(--gray);
        line-height: 1.6;
        font-size: 0.95rem;
    }
    
    .mobile-video {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray2);
    }
    
    .mobile-video h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--black);
        margin-bottom: 0.5rem;
    }
    
    .mobile-video-container {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        border-radius: 16px !important;
        background: #f8f9fa;
        -webkit-border-radius: 16px !important;
        -moz-border-radius: 16px !important;
    }
    
    .mobile-video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 16px !important;
        -webkit-border-radius: 16px !important;
        -moz-border-radius: 16px !important;
    }

    /* ========= MOBILE FACILITIES ========= */
    .mobile-facility-category {
        margin-bottom: 1.5rem;
    }
    
    .mobile-facility-category:last-child {
        margin-bottom: 0;
    }
    
    .mobile-facility-category h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--black);
        margin-bottom: 0.75rem;
    }
    
    .mobile-facility-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mobile-facility-list .facility-item {
        padding: 0.75rem;
        background: var(--base);
        border-radius: 8px;
        font-size: 0.9rem;
    }

    /* ========= MOBILE LOCATION ========= */
    .mobile-location-info {
        margin-bottom: 1rem;
    }
    
    .mobile-location-info p {
        margin-bottom: 0.5rem;
        color: var(--gray);
        line-height: 1.5;
        font-size: 0.9rem;
    }
    
    .mobile-location-info strong {
        color: var(--black);
    }

    /* ========= MOBILE RULES ========= */
    .mobile-rules {
        color: var(--gray);
    }
    
    .rules-section {
        margin-bottom: 1.5rem;
    }
    
    .rules-section:last-child {
        margin-bottom: 0;
    }
    
    .rules-section h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--black);
        margin-bottom: 0.75rem;
    }
    
    .rules-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rule-item {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
        background: var(--base);
        border-radius: 8px;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .no-rules {
        text-align: center;
        padding: 2rem;
        color: var(--gray);
        font-style: italic;
    }

    /* ========= MOBILE ACTIONS ========= */
    .mobile-actions-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
        z-index: 1100;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .mobile-buttons-row {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .btn-mobile {
        flex: 1;
        padding: 1rem;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .btn-survey {
        background: white;
        color: var(--blue);
        border: 1.5px solid var(--blue);
    }
    
    .btn-survey:hover {
        background: var(--blue);
        color: white;
        text-decoration: none;
    }
    
    .btn-reserve {
        background: var(--yellow);
        color: var(--black);
        font-weight: 600;
    }
    
    .btn-reserve:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 12px rgba(255, 230, 0, 0.35);
        color: #333;
        text-decoration: none;
    }

    .btn-reserve.disabled {
        background: var(--gray2);
        color: var(--gray);
        cursor: not-allowed;
        opacity: 0.7;
    }

    .btn-reserve.disabled:hover {
        background: var(--gray2);
        color: var(--gray);
        transform: none;
        box-shadow: none;
    }
    
    .btn-contact {
        background: var(--blue);
        color: white;
        font-weight: 600;
    }
    
    .btn-contact:hover {
        background: #1e40af;
        transform: translateY(-1px);
        text-decoration: none;
        color: white;
    }

    /* ========= MOBILE RESERVATION NOTICE ========= */
    .mobile-reservation-notice {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        background: linear-gradient(135deg, #fef7cd, #fef3c7);
        border: 1px solid #f59e0b;
        border-radius: 8px;
        color: #92400e;
    }
    
    .mobile-reservation-notice .notice-icon {
        flex-shrink: 0;
        color: #f59e0b;
    }
    
    .mobile-reservation-notice .notice-text {
        font-size: 0.85rem;
        font-weight: 500;
        text-align: center;
    }

    /* ========= MOBILE AGENT ========= */


    /* ========= MODAL ADJUSTMENTS FOR MOBILE ========= */
    .photo-modal {
        background: black;
    }
    .photo-modal-content {
        padding: 1rem;
    }
    
    .photo-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .photo-modal-body {
        flex-direction: column;
        max-width: 95vw;
        max-height: 90vh;
    }
    
    .photo-modal-main {
        max-width: 95vw;
    }
    
    .photo-modal-thumbnails {
        width: 100%;
        max-height: 150px;
    }
    
    .photo-thumbnails-grid {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .modal-thumbnail {
        min-width: 80px;
        height: 80px;
    }
}

/* ========= STICKY SEARCH CUSTOMIZATION FOR PROPERTY PAGE ========= */
/* Hide sticky search input on property pages - not needed here */
#stickySearchInput {
    display: none !important;
}

/* Hide sticky search bar on mobile for property pages */
@media (max-width: 768px), 
       (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .sticky-search-bar {
        display: none !important;
    }
}

/* ========= DESKTOP LARGE SCREENS - RESTORE STICKY ========= */
@media (min-width: 1025px) {
    .sidebar-sticky {
        position: sticky;
        top: calc(var(--navbar-height) + 1.5rem);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}
 
/* ========= TABLET PORTRAIT ADJUSTMENTS ========= */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    /* Hide navbar on tablet portrait */
    .papi-navbar {
        display: none !important;
    }
    
    /* Font size optimizations for tablet portrait */
    .mobile-property-type {
        font-size: 0.9rem !important; /* Increase from 0.75rem */
    }
    
    .availability-status {
        font-size: 1rem !important; /* Increase from 0.85rem */
    }
    
    /* General content font size increase */
    .property-content p,
    .property-content li,
    .facility-item span,
    .meta-badge {
        font-size: 1rem !important; /* Increase readability */
    }
    
    /* Button text size */
    .btn-reserve,
    .btn-survey {
        font-size: 1rem !important;
    }
    
    .property-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-top: 2rem; /* Add space for better text visibility */
    }
    
    .facility-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    /* Additional font size optimizations */
    .facility-item {
        font-size: 1rem !important; /* Increase facility text */
    }
    
    .tab-nav .tab-link {
        font-size: 1rem !important; /* Increase tab text */
        padding: 0.875rem 1rem; /* Slightly more padding */
    }
    
    .property-title h1 {
        font-size: 1.75rem !important; /* Increase main title */
    }
    
    .property-price {
        font-size: 1.5rem !important; /* Increase price text */
    }
    
    /* Tablet tab navigation adjustments */
    .mobile-tabs {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .tab-nav.sticky-nav {
        padding: 0 2rem; /* More padding on tablet */
    }
    
    .tab-btn {
        padding: 1.25rem 1rem; /* Slightly more padding */
        font-size: 1rem;
    }
    
    /* Better spacing for content sections on tablet */
    .content-section {
        padding-bottom: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 1.5rem !important;
        padding-top: 1rem;
    }
    
    /* Location info better spacing on tablet */
    .mobile-location-info p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }
}

/* ========= LARGE SCREEN ADJUSTMENTS ========= */
@media (min-width: 1400px) {
    .property-container {
        max-width: 1400px;
    }
    
    .gallery-main {
        height: 500px;
    }
    
    .facility-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ========= MAP PLACEHOLDER ========= */
.map-placeholder {
    height: 400px;
    border-radius: 12px;
    background: var(--gray1);
    border: 2px dashed var(--gray3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.map-placeholder-content {
    text-align: center;
    color: var(--gray4);
}

.map-placeholder-content svg {
    color: var(--gray3);
    margin-bottom: 1rem;
}

.map-placeholder-content p {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

/* ========= TOAST NOTIFICATIONS ========= */
.toast {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transform: translateX(100%);
    animation: slideIn 0.3s ease-out forwards;
}

.toast.toast-success {
    background: #10b981 !important;
}

.toast.toast-error {
    background: #ef4444 !important;
}

.toast.toast-info {
    background: #3b82f6 !important;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========= MAP LOADING ========= */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.map-container #propertyMap {
    position: relative;
    z-index: 1;
}

.map-loading {
    z-index: 1000;
    font-size: 0.9rem;
    color: var(--gray5);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ========= RULES IMAGES ========= */
.rules-images-grid {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.rules-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid var(--gray2);
    max-width: 400px;
    width: 100%;
}

.rules-image-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rules-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.rules-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Mobile Rules Images */
.mobile-rules-images {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-rules-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--gray2);
}

.mobile-rules-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.mobile-rules-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Rules Image Modal */
.rules-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    padding: 2rem;
}

.rules-image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.rules-image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ========= MOBILE OPTIMIZATION ========= */
@media (max-width: 768px), 
       (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .availability-status {
        padding: 6px 10px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .availability-status svg {
        width: 14px;
        height: 14px;
    }

    .rules-image-modal {
        padding: 1rem;
        background: black;
    }

    .rules-image-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    /* Responsive Reservation Info Card */
    .reservation-info-card {
        padding: 0.875rem;
        gap: 0.625rem;
        border-radius: 10px;
    }
    
    .reservation-info-card .info-icon {
        width: 36px;
        height: 36px;
    }
    
    .reservation-info-card .info-content h4 {
        font-size: 0.9rem;
    }
    
    .reservation-info-card .info-content p {
        font-size: 0.8rem;
    }
}

.site-footer {
    display: none;
}