/* ==========================================================================
   Property Image Loading Optimizations
   ========================================================================== */

/* Property Card Container */
.property-card {
    position: relative;
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.property-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* Image Wrapper with Fixed Dimensions */
.property-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    background-color: #f0f0f0;
    overflow: hidden;
    display: block;
}

/* Status Badge on Image */
.property-card-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(34, 43, 100, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* Property Card Details Section */
.property-card-details {
    padding: 20px;
}

.property-card-type {
    display: inline-block;
    background: #f0f4ff;
    color: #222b64;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.property-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-card-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 40px;
}

.property-card-address i {
    color: #222b64;
    margin-top: 2px;
    flex-shrink: 0;
}

.property-card-features {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.property-card-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.property-card-feature i {
    color: #222b64;
    font-size: 14px;
}

.property-card-reference {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Prevent ANY child element from exceeding wrapper dimensions */
.property-image-wrapper * {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Skeleton Loading Animation */
.image-skeleton {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Loading Spinner */
.image-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #222b64;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

/* Actual Property Image */
.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    max-width: 100%;
    max-height: 100%;
}

.property-image.loaded {
    opacity: 1;
}

/* Force placeholder images to stay constrained */
.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* No Image Placeholder - Simple, Clean, Constrained */
.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
    color: #95a5a6;
    z-index: 3;
}

.no-image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.4;
}

.no-image-placeholder p {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    opacity: 0.6;
}

/* Image Error State */
.image-error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

.image-error-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Property Link Styling */
.property-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.property-link:hover,
.property-link:focus {
    text-decoration: none;
    color: inherit;
}

/* Old Property Info Styling (for compatibility) */
.property-info {
    padding: 10px 0;
}

.property-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.property-info-label {
    color: #666;
}

.property-info-value {
    font-weight: 600;
    color: #333;
}

/* Responsive Adjustments for Grid Cards */
@media (max-width: 768px) {
    .property-image-wrapper {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
    
    .property-card-title {
        font-size: 16px;
    }
    
    .property-card-features {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .property-image-wrapper {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }
    
    .property-card-details {
        padding: 15px;
    }
    
    .property-card-title {
        font-size: 15px;
    }
}

/* Loading Progress Indicator (Optional) */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    z-index: 9999;
}

.loading-progress-bar {
    height: 100%;
    background-color: #222b64;
    width: 0%;
    transition: width 0.3s ease;
}

/* Fade-in animation for cards */
.property-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.property-card:nth-child(1) { animation-delay: 0.05s; }
.property-card:nth-child(2) { animation-delay: 0.1s; }
.property-card:nth-child(3) { animation-delay: 0.15s; }
.property-card:nth-child(4) { animation-delay: 0.2s; }
.property-card:nth-child(5) { animation-delay: 0.25s; }
.property-card:nth-child(6) { animation-delay: 0.3s; }
.property-card:nth-child(7) { animation-delay: 0.35s; }
.property-card:nth-child(8) { animation-delay: 0.4s; }
.property-card:nth-child(9) { animation-delay: 0.45s; }
.property-card:nth-child(10) { animation-delay: 0.5s; }

/* ==========================================================================
   Row Layout (List View) - Cushman & Wakefield Style
   ========================================================================== */

/* Row Layout Container */
.property-row {
    display: none; /* Hidden by default */
    width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.property-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.property-row-inner {
    display: flex;
    flex-direction: row;
    min-height: 220px;
}

/* Image Section (Left - 40%) */
.property-row-image {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    overflow: hidden;
}

.property-row-image .property-image-wrapper {
    height: 100%;
    min-height: 220px;
    border-radius: 0;
}

/* Details Section (Right - 60%) */
.property-row-details {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Property Type Badge */
.property-type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
}

.property-type-badge span {
    color: #222b64;
}

/* Property Title */
.property-row-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Property Address */
.property-row-address {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.property-row-address div {
    margin-bottom: 4px;
}

/* Property Meta Info (Price, Area, etc.) */
.property-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.property-meta-item {
    display: flex;
    flex-direction: column;
}

.property-meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 4px;
}

.property-meta-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.property-meta-value.price {
    color: #27ae60;
}

/* View Toggle Buttons */
.view-toggle {
    border-color: #ddd !important;
    background-color: #fff !important;
    color: #666 !important;
}

.view-toggle.active {
    background-color: #222b64 !important;
    color: #fff !important;
    border-color: #222b64 !important;
}

.view-toggle:hover:not(.active) {
    background-color: #f5f5f5 !important;
}

/* View State Classes */
.view-grid .property-card {
    display: block;
}

.view-grid .property-row {
    display: none;
}

.view-row .property-card {
    display: none;
}

.view-row .property-row {
    display: block;
}

/* Responsive Row Layout */
@media (max-width: 992px) {
    .property-row-inner {
        flex-direction: column;
    }
    
    .property-row-image {
        flex: 0 0 250px;
        max-width: 100%;
    }
    
    .property-row-image .property-image-wrapper {
        min-height: 250px;
    }
    
    .property-row-details {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .property-row-title {
        font-size: 18px;
    }
    
    .property-row-address {
        font-size: 14px;
    }
    
    .property-row-meta {
        gap: 15px;
    }
}

/* ==========================================================================
   Modern Filter Controls & Panel
   ========================================================================== */

/* Filter Controls Wrapper */
.filter-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.view-toggle-section {
    flex: 0 0 auto;
}

.filter-toggle-section {
    flex: 0 0 auto;
}

#filter-toggle-btn {
    position: relative;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#filter-toggle-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

#filter-chevron {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 12px;
}

#filter-chevron.rotated {
    transform: rotate(180deg);
}

.filter-count-badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
}

/* Filter Panel */
.filter-panel {
    margin-top: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-panel-inner {
    padding: 25px;
}

/* Filter Groups Container - Horizontal Grid Layout */
.filter-groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px 30px;
    margin-bottom: 20px;
}

.filter-group {
    min-width: 0; /* Prevents grid blowout */
    overflow: visible; /* Ensure content isn't clipped */
}

.filter-group-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter search box */
.filter-search-box {
    margin-bottom: 10px;
    display: none;
}

.filter-search-box.visible {
    display: block;
}

.filter-search-box input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.filter-search-box input:focus {
    outline: none;
    border-color: #222b64;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: visible; /* Prevent horizontal clipping */
    padding: 8px 12px 8px 8px; /* Removed negative margin compensation */
}

/* Custom scrollbar for long filter lists */
.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.filter-option {
    display: block; /* Ensure full width */
    min-height: 32px; /* Prevent height collapse */
    overflow: visible !important; /* Force visible overflow */
    position: relative; /* Establish positioning context */
}

.filter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 10px 6px 4px; /* Less left padding since checkbox has margin */
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    margin-bottom: 0;
    width: 100%; /* Full width for better click area */
    overflow: visible !important; /* Ensure label content isn't clipped */
    position: relative; /* Prevent clipping */
    box-sizing: border-box; /* Include padding in width calculation */
}

.filter-option label:hover {
    background-color: #f9f9f9;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin-right: 8px;
    margin-left: 0; /* Ensure no negative margin */
    cursor: pointer;
    flex-shrink: 0; /* Prevent checkbox from shrinking */
    position: relative; /* Ensure checkbox renders on top */
    z-index: 1; /* Ensure visibility */
}

.filter-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.apply-filters-btn {
    background-color: #222b64;
    border-color: #222b64;
    color: white;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.apply-filters-btn:hover {
    background-color: #e85a2a;
    border-color: #e85a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.clear-filters-btn {
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background-color: #f5f5f5;
}

/* View Toggle Buttons Override */
.view-toggle {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.view-toggle.active {
    background-color: #222b64 !important;
    border-color: #222b64 !important;
    color: white !important;
}

.view-toggle:hover:not(.active) {
    background-color: #f5f5f5 !important;
}

/* ==========================================================================
   Pagination Styling
   ========================================================================== */

.pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 50px auto 50px auto;
    gap: 5px;
}

.pagination li {
    display: inline-block;
    margin: 0;
}

.pagination li a {
    display: block;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination li a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #000;
}

.pagination li.active a {
    background-color: #222b64;
    border-color: #222b64;
    color: #fff;
    font-weight: 600;
    pointer-events: none;
}

.pagination li.disabled a {
    color: #999;
    background-color: #f9f9f9;
    border-color: #ddd;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Filter Layout */
@media (max-width: 768px) {
    .filter-controls-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .apply-filters-btn,
    .clear-filters-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Property Detail Page Styling
   ========================================================================== */

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 20px;
}

.back-link:hover {
    color: #222b64;
    text-decoration: none;
}

/* Gallery Section */
.detail-gallery-section {
    margin-bottom: 40px;
}

/* Modern Gallery Container */
.modern-gallery {
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Image Display */
.gallery-main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.gallery-main-container {
    position: relative;
    background: #000;
    min-height: 500px; /* Prevents layout shift during image loading */
    height: 500px;
}

.gallery-main-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Image Counter Badge */
.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.gallery-main-image:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-nav i {
    font-size: 20px;
    color: #222b64;
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Thumbnail Strip */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #222b64;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #1a2050;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: #f0f0f0;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

.gallery-thumbnail.active {
    border-color: #222b64;
    box-shadow: 0 2px 10px rgba(34, 43, 100, 0.3);
}

.gallery-thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 43, 100, 0.2);
    pointer-events: none;
}

/* Info Section */
.detail-info-section {
    padding: 40px 0;
}

.detail-header {
    margin-bottom: 40px;
}

.detail-type-badge {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-type-badge span {
    color: #222b64;
    font-weight: 600;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0 15px;
}

.detail-address {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.detail-address i {
    color: #222b64;
    margin-right: 8px;
}

.detail-reference {
    font-size: 14px;
    color: #999;
}

/* Features Grid */
.detail-features {
    margin-bottom: 40px;
}

.detail-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #222b64 0%, #4a5a9e 100%);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* Description */
.detail-description {
    margin-bottom: 40px;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Sidebar */
.detail-sidebar {
    position: sticky;
    top: 20px;
}

.price-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.price-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price-subtext {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

/* CTA Buttons */
.cta-buttons {
    margin-bottom: 20px;
}

.cta-primary {
    background-color: #222b64;
    border-color: #222b64;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background-color: #e55a24;
    border-color: #e55a24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.cta-secondary {
    border: 2px solid #ddd;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: #222b64;
    color: #222b64;
    background-color: rgba(255, 107, 53, 0.05);
}

.cta-buttons .btn i {
    margin-right: 8px;
}

/* Quick Info Card */
.quick-info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.quick-info-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.quick-info-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #555;
    font-size: 14px;
}

.info-item i {
    color: #222b64;
    font-size: 16px;
    width: 20px;
}

/* Responsive Detail Page */
@media (max-width: 992px) {
    .detail-title {
        font-size: 26px;
    }
    
    .gallery-main-container {
        height: 400px;
        min-height: 400px;
    }
    
    .gallery-main-container img {
        height: 400px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav i {
        font-size: 16px;
    }
    
    .gallery-thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .property-map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 22px;
    }
    
    .gallery-main-container {
        height: 300px;
        min-height: 300px;
    }
    
    .gallery-main-container img {
        height: 300px;
    }
    
    .gallery-nav {
        opacity: 1;
        width: 35px;
        height: 35px;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
    
    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .price-value {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .property-map {
        height: 300px;
    }
}

/* Additional responsive adjustment for medium screens */
@media (max-width: 992px) and (min-width: 769px) {
    .price-value {
        font-size: 36px;
        line-height: 1.2;
    }
}

/* Map Styling */
.detail-location {
    margin-bottom: 40px;
}

.property-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-coordinates {
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 10px 0;
}

.map-coordinates i {
    color: #222b64;
    margin-right: 5px;
}


