/* ===== Mobile Property Detail Page Styles ===== */
/* Mobile-first design approach */

/* Reset and base styles for mobile view */
body.mobile-property-detail {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* Hide desktop elements on mobile */
body.mobile-property-detail .navbar,
body.mobile-property-detail footer:not(.mobile-footer) {
    display: none !important;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: var(--z-fixed);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-header .back-button,
.mobile-header .share-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-header .room-code {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: white;
}

/* Image Carousel Container */
.mobile-carousel-container {
    position: relative;
    width: 100%;
}

@media (min-width: 992px) {
    .mobile-carousel-container {
        margin-top: 0;
        margin-bottom: 24px;
    }
}

/* Carousel styling for mobile property detail */
.mobile-carousel-container .carousel-container {
    width: 100%;
}

.mobile-carousel-container .carousel-main {
    aspect-ratio: 4/3;
    background: #f5f5f5;
    border-radius: 0;
}

@media (min-width: 992px) {
    .mobile-carousel-container .carousel-main {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

.mobile-carousel-container .carousel-slide {
    background: transparent;
}

.mobile-carousel-container .carousel-slide img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Thumbnail styling for mobile */
.mobile-carousel-container .carousel-thumbnails {
    padding: 8px;
    gap: 8px;
}

.mobile-carousel-container .carousel-thumb {
    width: 60px;
    height: 45px;
}

@media (min-width: 480px) {
    .mobile-carousel-container .carousel-thumb {
        width: 80px;
        height: 60px;
    }
}

@media (min-width: 768px) {
    .mobile-carousel-container .carousel-thumb {
        width: 100px;
        height: 75px;
    }
}

/* Hide thumbnails on very small screens */
@media (max-width: 479px) {
    .mobile-carousel-container .carousel-thumbnails {
        display: none;
    }
}

/* No Image Placeholder */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
}

.no-image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}


/* Property Info Section - now using shared detail-section class */

.property-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.property-price {
    font-size: 18px;
    font-weight: 700;
    color: red;
    margin-bottom: 8px;
}

.property-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.property-location i {
    color: var(--primary-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.property-status {
    margin-top: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #0966ff;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
}

/* Cost Breakdown Section - now using shared detail-section class */

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

/* Cost Table Styles - Simple and Clean */
.cost-table-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 8px;
}


.cost-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    table-layout: fixed; /* Equal column widths */
    margin-bottom: 0;
}

.cost-table td {
    width: 25%; /* 4 columns */
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #000;
    min-height: 80px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .cost-table-wrapper {
        padding: 0;
    }
    
    .cost-table td {
        padding: 8px 4px;
        font-size: 0.9rem;
        min-height: 70px;
    }
}

.cost-label {
    font-size: clamp(11px, 2.5vw, 14px);
    font-weight: 500;
    line-height: 1.2;
    /* Text overflow handling */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.cost-value {
    display: flex;
    align-items: baseline;
    gap: 2px;
    justify-content: center;
    margin: 4px 0;
}

.cost-amount {
    font-size: clamp(12px, 3vw, 16px);
    color: var(--primary-blue);
}

.cost-unit {
    font-size: clamp(10px, 2vw, 12px);
    font-weight: normal;
}

/* Responsive breakpoints for better scaling */
@media (min-width: 360px) {
    .cost-label, .cost-amount, .cost-unit {
        font-size: 12px;
    }
}

@media (min-width: 480px) {
    .cost-label, .cost-amount, .cost-unit {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .cost-label, .cost-amount, .cost-unit {
        font-size: 16px;
    }
}

/* Very small screens */
@media (max-width: 359px) {
    .cost-table td {
        padding: 6px 2px;
        min-height: 60px;
        font-size: 0.85rem;
    }
}

/* Cost cell content wrapper for better structure */
.cost-cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: inherit;
}


/* Larger screens */
@media (min-width: 992px) {
    .cost-table td {
        padding: 16px 12px;
        min-height: 90px;
    }
}

/* Property Details Section - now using shared detail-section class */

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Adjust for mobile 3-column layout */
@media (max-width: 575px) {
    .detail-item {
        padding: 6px 8px;
        font-size: 12px;
        min-height: 32px;
        gap: 4px;
    }
    
    .detail-label {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .detail-value {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Tablet view - still 3 columns but larger */
@media (min-width: 576px) and (max-width: 991px) {
    .detail-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .detail-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

.detail-label {
    color: #333;
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 400;
}

.detail-value {
    font-weight: 400;
    color: #333;
    word-break: break-word;
    margin-left: auto;
}

.detail-value.has-icon {
    display: flex;
    align-items: center;
}

.detail-value i.fa-check,
.cost-amount i.fa-check {
    color: #2563eb;
    font-size: 14px;
}

.detail-value i.fa-times,
.cost-amount i.fa-times {
    color: #dc2626;
    font-size: 14px;
}

/* Room List Section */
.room-list-section {
    background: white;
    margin-top: 8px;
}

@media (min-width: 992px) {
    .room-list-section {
        border: 1px solid #e0e0e0;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
    
    .room-list-section .room-list-toggle {
        border-radius: var(--radius-full);
        margin-bottom: var(--space-2);
    }
}

/* ===== Unified Action Button System ===== */
.action-button-wrapper {
    padding: 16px;
    background: white;
}

.action-button {
    width: 100%;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.action-button--primary {
    padding: var(--space-4);
    background: var(--primary-blue);
    color: white;
}

.action-button--primary:hover {
    background: var(--primary-blue-dark);
}

.action-button--primary:active {
    background: var(--primary-blue-dark);
    transform: scale(0.98);
}

.action-button--secondary {
    padding: var(--space-4);
    background: var(--accent-blue);
    color: var(--primary-blue);
}

.action-button--secondary:hover {
    background: #0284c7;
}

.action-button--secondary:active {
    background: #0284c7;
    transform: scale(0.98);
}

.action-button--toggle {
    justify-content: space-between;
    font-weight: 500;
}

.action-button--dropdown {
    justify-content: center;
    position: relative;
}

.action-button--dropdown span {
    flex: 1;
    text-align: center;
}

.action-button--dropdown i {
    position: absolute;
    right: 16px;
}

.action-button i {
    font-size: 18px;
}

/* Extra Actions for Non-Authenticated Users */
.action-extras {
    margin-top: 8px;
}

.action-extras .action-button {
    min-height: 40px;
    font-size: 14px;
    font-weight: 500;
}

.action-extras .action-button i {
    font-size: 16px;
}

/* Responsive behavior for action extras */
@media (max-width: 991px) {
    .action-extras {
        display: flex !important;
        gap: 8px;
    }

    .action-extras .action-button {
        flex: 1;
    }

    .action-button--primary {
        padding: 0;
    }
}

@media (min-width: 992px) {
    .action-extras {
        display: block !important;
    }
    
    .action-extras .action-button {
        margin-bottom: 8px;
    }
    
    .action-extras .action-button:last-child {
        margin-bottom: 0;
    }
}

/* ===== New Booking Actions Layout ===== */
.booking-actions-row {
    display: flex;
    align-items: stretch;
    gap: var(--space-3);
}

.main-action {
    flex: 1;
    max-width: 60%;
}

.main-action--full {
    max-width: 100%;
}

.extra-actions-group {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.extra-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: var(--space-2);
    cursor: pointer;
    transition: opacity var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

.extra-action-item:hover {
    opacity: 0.7;
}

.extra-action-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-1);
}

.extra-action-item__icon i {
    font-size: 18px;
    color: var(--text-muted);
}

.extra-action-item__text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

/* Responsive behavior for booking actions */
@media (max-width: 991px) {
    .booking-actions-row {
        flex-direction: row;
        align-items: stretch;
        gap: var(--space-2);
    }
    
    .main-action {
        flex: 1;
        max-width: 60%;
    }
    
    .extra-actions-group {
        flex-shrink: 0;
        gap: var(--space-2);
    }
    
    .extra-action-item {
        min-width: 50px;
        padding: var(--space-1);
    }
    
    .extra-action-item__text {
        font-size: 11px;
    }
}

@media (min-width: 992px) {
    .booking-actions-row {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .main-action {
        max-width: 100%;
    }
    
    .extra-actions-group {
        justify-content: center;
        gap: var(--space-4);
    }
    
    .extra-action-item {
        min-width: 80px;
    }
}

/* Legacy Room List Toggle (to be replaced) */
.room-list-toggle {
    width: 100%;
    padding: var(--space-4);
    min-height: 48px;
    background: var(--accent-blue);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 500;
    color: white;
    -webkit-tap-highlight-color: transparent;
    transition: all var(--transition-base);
    position: relative;
}

.room-list-toggle:hover {
    background: #0284c7;
}

.room-list-toggle:active {
    background: #0284c7;
    transform: scale(0.98);
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: white;
    position: absolute;
    right: var(--space-4);
}

.toggle-icon.rotate {
    transform: rotate(180deg);
}

.room-list-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.room-list-content.open {
    max-height: 400px;
    overflow-y: auto;
}

.room-list {
    padding: 0 16px;
}

.room-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #c8e6e9;  /* Light cyan/blue background */
}

.room-item.active {
    background: #66bb6a;  /* Green background for active */
    border: none;
}

.room-item-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.room-item-info a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}


.room-link {
    color: var(--primary-blue);
    font-size: 18px;
    text-decoration: none;
}

.room-current {
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Main Container */
.main-container {
    padding: 0;
}

/* Legacy Book Button Styles (to be replaced) */
.book-button-wrapper {
    padding: 16px;
    background: white;
}

.book-button {
    width: 100%;
    padding: var(--space-4);
    min-height: 48px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.book-button:hover {
    background: var(--primary-blue-dark);
}

.book-button:active {
    background: var(--primary-blue-dark);
    transform: scale(0.98);
}

.book-button i {
    font-size: 18px;
}

/* Sidebar/Footer Responsive Behavior */
.sidebar-footer {
    background: white;
}

/* Mobile: Fixed Footer */
@media (max-width: 991px) {
    .sidebar-footer {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        z-index: var(--z-action-button);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        background: white;
        border-top: 1px solid #e0e0e0;
    }
    
    .sidebar-content {
        display: flex;
        flex-direction: column;
        background: white;
    }
    
    /* Adjust room list for footer */
    .sidebar-footer .room-list-section {
        margin-top: 0;
        border-top: 1px solid #e0e0e0;
    }
    
    .sidebar-footer .room-list-toggle {
        padding: 12px 16px;
    }
    
    /* Closed state */
    .sidebar-footer .room-list-content {
        max-height: 0;
    }
    
    /* Open state */
    .sidebar-footer .room-list-content.open {
        max-height: 200px;
        overflow-y: auto;
    }
    
    /* Action buttons in footer */
    .action-button-wrapper {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #e0e0e0;
        background: white;
    }
    
    /* Legacy support for book-button-wrapper */
    .book-button-wrapper {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #e0e0e0;
        background: white;
    }
    
    /* Add padding to main content to prevent overlap */
    body.mobile-property-detail .main-container {
        padding-bottom: 180px; /* Account for fixed footer height */
    }

    /* Ensure proper spacing in main column */
    .col-12.col-lg-8 {
        padding-bottom: 20px;
    }
}

/* Desktop: Sticky Sidebar */
@media (min-width: 992px) {
    .sidebar-footer {
        position: relative !important;
        padding-top: 24px;
        height: 100%;
    }
    
    .sidebar-content {
        position: sticky;
        top: 20px; /* Offset from top when sticky */
        max-height: calc(100vh - 40px); /* Viewport height minus top/bottom padding */
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f8f9fa;
    }
    
    /* Custom scrollbar for webkit browsers */
    .sidebar-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .sidebar-content::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }
    
    .sidebar-content::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }
    
    .sidebar-content::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
    
    .action-button-wrapper {
        padding: 0;
        margin-top: 24px;
    }
    
    /* Action buttons should show in desktop sidebar */
    .sidebar-footer .action-button-wrapper {
        display: block;
        padding: 16px 0;
    }
    
    /* Legacy support for book-button-wrapper */
    .book-button-wrapper {
        padding: 0;
        margin-top: 24px;
    }
    
    .sidebar-footer .book-button-wrapper {
        display: block;
        padding: 16px 0;
    }
}

/* ===== Chat Modal Styles ===== */
.chat-modal {
    border-radius: var(--radius-2xl);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.chat-modal .modal-header {
    padding: var(--space-4) var(--space-4) 0;
    justify-content: flex-end;
    background: transparent;
    border: none;
}

.chat-modal .modal-body {
    padding: 0 var(--space-6) var(--space-8);
    background: transparent;
}

/* Hero Section with App Icon */
.chat-modal__hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-8);
    padding: var(--space-6) 0;
}

.chat-modal__icon-container {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-indigo) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: 0 20px 40px rgba(9, 102, 255, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    animation: heroFloat 4s ease-in-out infinite;
}

.chat-modal__icon-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--secondary-indigo-light));
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.7;
    filter: blur(8px);
}

.chat-modal__icon-container i {
    color: white;
    font-size: 3.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.chat-modal__chat-bubble {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 4px solid white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    animation: chatPulse 2.5s ease-in-out infinite;
}

.chat-modal__chat-bubble i {
    color: white;
    font-size: 20px;
    filter: none;
}

@keyframes chatPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
    }
}

@keyframes heroFloat {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px); }
}

/* Message Section */
.chat-modal__title {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    text-align: center;
    letter-spacing: -0.02em;
}

.chat-modal__description {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--gray-600);
    text-align: center;
    font-weight: 500;
    margin-bottom: var(--space-6);
}

/* QR Code Section */
.chat-modal__qr-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e0f2fe 50%, #f0f9ff 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin: var(--space-6) 0;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 32px rgba(9, 102, 255, 0.1);
    border: 1px solid rgba(9, 102, 255, 0.1);
}

.chat-modal__qr-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--secondary-indigo-light));
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.1;
}

.chat-modal__qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.chat-modal__qr-code {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(9, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.chat-modal__qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chat-modal__qr-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(9, 102, 255, 0.03) 100%);
    opacity: 1;
}

.chat-modal__qr-code::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-indigo) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.8;
    box-shadow: 0 4px 12px rgba(9, 102, 255, 0.3);
}

.chat-modal__qr-instruction {
    font-size: var(--text-base);
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: rgba(9, 102, 255, 0.1);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.chat-modal__qr-instruction i {
    color: var(--primary-blue);
    font-size: 18px;
}

/* Download Button */
.chat-modal__download-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-indigo) 100%);
    border: none;
    padding: var(--space-5) var(--space-10);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-lg);
    box-shadow: 0 12px 32px rgba(9, 102, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-width: 240px;
    justify-content: center;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.chat-modal__download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.chat-modal__download-btn:hover::before {
    left: 100%;
}

.chat-modal__download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(9, 102, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--secondary-indigo) 0%, var(--primary-blue-dark) 100%);
    color: white !important;
}

.chat-modal__download-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.chat-modal__download-btn i {
    font-size: 20px;
}

.chat-modal__alternative {
    margin-top: var(--space-4);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background: rgba(156, 163, 175, 0.05);
}

.chat-modal__alternative a {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all var(--transition-base);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

.chat-modal__alternative a:hover {
    text-decoration: none;
    background: rgba(9, 102, 255, 0.1);
    color: var(--primary-blue-dark);
}

/* Responsive Design */
@media (max-width: 576px) {
    .chat-modal .modal-body {
        padding: 0 var(--space-4) var(--space-6);
    }

    .chat-modal__hero {
        margin-bottom: var(--space-6);
        padding: var(--space-4) 0;
    }

    .chat-modal__icon-container {
        padding: var(--space-4);
        transform: perspective(800px) rotateY(-3deg) rotateX(3deg);
    }

    .chat-modal__icon-container i {
        font-size: 2.5rem;
    }

    .chat-modal__chat-bubble {
        width: 36px;
        height: 36px;
        top: -8px;
        right: -8px;
    }

    .chat-modal__chat-bubble i {
        font-size: 16px;
    }

    .chat-modal__qr-section {
        padding: var(--space-6);
        margin: var(--space-4) 0;
    }

    .chat-modal__qr-code {
        width: 140px;
        height: 140px;
        padding: var(--space-4);
    }

    .chat-modal__qr-code::after {
        width: 24px;
        height: 24px;
    }

    .chat-modal__title {
        font-size: var(--text-2xl);
    }

    .chat-modal__description {
        font-size: var(--text-base);
        margin-bottom: var(--space-4);
    }

    .chat-modal__download-btn {
        padding: var(--space-4) var(--space-8);
        font-size: var(--text-base);
        min-width: 200px;
    }

    .chat-modal__qr-instruction {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
    }
}

@media (min-width: 768px) {
    .chat-modal__qr-code {
        width: 200px;
        height: 200px;
    }

    .chat-modal__hero {
        margin-bottom: var(--space-10);
    }

    .chat-modal__icon-container {
        padding: var(--space-8);
    }

    .chat-modal__icon-container i {
        font-size: 4rem;
    }

    .chat-modal__download-btn {
        min-width: 280px;
        font-size: var(--text-xl);
    }
}

/* Bootstrap Modal Overrides for Mobile */
@media (max-width: 991.98px) {
    /* Ensure modal appears above fixed header and footer */
    .modal {
        z-index: var(--z-modal);
    }
    
    .modal-backdrop {
        z-index: var(--z-modal-backdrop);
    }
    
    /* Make modal full-screen on mobile with header spacing */
    .modal-dialog {
        margin: 0;
        margin-top: 56px; /* Account for fixed header height */
        max-width: 100%;
        width: 100%;
        height: calc(100% - 56px);
    }
    
    /* Modal content styling for mobile */
    .modal-content {
        height: 100%;
        border-radius: 16px 16px 0 0;
        border: none;
        display: flex;
        flex-direction: column;
    }
    
    /* Fixed modal header */
    .modal-header {
        flex-shrink: 0;
        padding: 16px;
        background: white;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 16px 16px 0 0;
    }
    
    /* Scrollable modal body */
    .modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
        max-height: calc(100vh - 200px); /* Account for header and footer */
    }
    
    /* Fixed modal footer */
    .modal-footer {
        flex-shrink: 0;
        padding: 16px;
        background: white;
        border-top: 1px solid #e0e0e0;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    
    /* Remove Bootstrap's transform for better mobile performance */
    .modal.fade .modal-dialog {
        transform: none;
        transition: none;
    }
    
    .modal.show .modal-dialog {
        transform: none;
    }
    
    /* Ensure form controls are touch-friendly on mobile */
    .modal-body .form-control,
    .modal-body .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Touch-friendly size */
    }
    
    /* Ensure proper spacing for form groups */
    /* Removed negative margins on .modal-body .row to prevent horizontal scrollbar */
    
    .modal-body .col-md-4,
    .modal-body .col-md-6,
    .modal-body .col-12 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Desktop modal styles (unchanged) */
@media (min-width: 992px) {
    .modal-dialog {
        max-width: 800px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

select.form-control {
    background: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
}

.submit-button:disabled {
    background: #ccc;
}


/* Property carousel specific styles (desktop) */
@media (min-width: 992px) {
    .property-carousel .carousel-thumbnails {
        display: flex !important;
    }
    
    .property-carousel .carousel-counter {
        display: none !important;
    }
}

/* Tablet and larger adjustments */
@media (min-width: 768px) {
    .mobile-header {
        display: none;
    }
    
    body.mobile-property-detail .navbar,
    body.mobile-property-detail footer:not(.mobile-footer) {
        display: block !important;
    }
    
    .mobile-carousel-container {
        margin-top: 0;
        max-width: 768px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .property-info,
    .cost-breakdown,
    .room-list-section {
        max-width: 768px;
        margin-left: auto;
        margin-right: auto;
    }
    
    
    /* Adjust main content width */
    .main-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        border-radius: 16px;
        max-height: 90vh;
    }
}