/* App.ejs Specific Styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    /* overflow-x: hidden; */
}
body{
    overflow-x: hidden;
}
/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Active menu item */
.header-menu a.active {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Offers Page Styles */
.offers-page {
    margin-top: 5.5rem;
}

.offers-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.offers-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.offers-hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Filters Section */
.filters-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filters-container {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: '29LT Zawi', sans-serif;
    font-size: 0.9rem;
    background-color: white;
    min-width: 180px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: '29LT Zawi', sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: var(--tertiary-color);
}

/* Offers Grid Section */
.offers-grid-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.offer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.offer-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

/* للصور العمودية (portrait) - تأخذ المساحة كاملة */
.offer-image.portrait-image {
    /* height: 300px; */
     /* زيادة الارتفاع للصور العمودية */
}

.offer-image.portrait-image img {
    object-fit: contain;
    object-position: center top; /* التركيز على الجزء العلوي */
    height: 100%;
}

/* للصور العريضة (landscape) */
.offer-image.landscape-image img {
    object-fit: cover;
    object-position: center;
}

/* في الجوال - الصور العمودية تأخذ مساحة أكبر */
@media (max-width: 768px) {
    .offer-image.portrait-image {
        /* height: 350px; */
    }
    
    .offer-image.portrait-image img {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: 100%;
    }
    
    /* تحسين عرض جميع الصور في الجوال */
    .offer-image {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .offer-image img {
        border-radius: 0;
    }
}

.offer-card:hover .offer-image img {
    transform: scale(1.05);
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.offer-badge.sale {
    background-color: var(--primary-color);
}

.offer-badge.rent {
    background-color: #28a745;
}

.offer-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
}

.price-period {
    font-size: 0.8rem;
    opacity: 0.9;
}

.offer-content {
    padding: 1.5rem;
}

.offer-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.offer-location {
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--secondary-color);
}

.offer-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.offer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--tertiary-color);
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-contact, .btn-whatsapp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.btn-contact {
    background-color: #007bff;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-contact:hover, .btn-whatsapp:hover {
    transform: scale(1.1);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Image Gallery */
.image-gallery {
    position: relative;
    margin-bottom: 1rem;
}

.gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-thumbnails {
    display: none;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    background: transparent;
}

.gallery-thumb {
    min-width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(1, 59, 69, 0.2);
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.image-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Image Navigation */
.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.nav-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    pointer-events: all;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.nav-btn i {
    font-size: 1.2rem;
}

/* Listing Type Badge */
.listing-type-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.listing-type-badge.sale {
    background-color: var(--primary-color);
}

.listing-type-badge.rent {
    background-color: #28a745;
}

/* Price Period */
.price-period {
    font-size: 1rem;
    color: #6c757d;
    margin-right: 0.5rem;
}

/* Video Support */
.main-gallery-video, .main-media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
}

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.gallery-thumb[data-type="video"], .thumbnail[data-type="video"] {
    position: relative;
}

.gallery-thumb video, .thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.media-counter i {
    font-size: 0.8rem;
}

/* Map Styles */
.property-location-map {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.property-location-map h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.map-container {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    min-height: 400px;
}

/* Ensure Leaflet map fits container properly */
.map-container .leaflet-container {
    height: 100% !important;
    width: 100% !important;
    border-radius: 8px;
}





.coordinates-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.coordinates-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coordinates-info i {
    color: var(--primary-color);
}

/* Update property-images to property-media */
.property-media {
    margin-bottom: 2rem;
}

.main-media {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.main-media img, .main-media video {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* للصور العمودية في الصفحة الرئيسية للعقار */
.main-media.portrait-image {
    height: 500px;
     /* زيادة الارتفاع للصور العمودية */
}

.main-media.portrait-image img,
.main-media.portrait-image video {
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* في الجوال - الصور العمودية في صفحة التفاصيل */
@media (max-width: 768px) {
    .main-media.portrait-image {
        height: 450px;
    }
    
    .main-media.portrait-image img,
    .main-media.portrait-image video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* تحسين عرض الصور الرئيسية في الجوال */
    .main-media {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .main-media img,
    .main-media video {
        border-radius: 0;
    }
}

.media-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-top: 1rem;
    background: transparent;
}

.media-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

/* Property Details Page Styles */
.property-details-page {
    margin-top: 5.5rem;
}

.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--tertiary-color);
}

.breadcrumb-nav .current {
    color: #6c757d;
}

.property-details {
    padding: 2rem 0;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.property-title-section h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.property-location {
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.property-type-badge {
    display: inline-block;
    overflow: hidden;
}

.property-type-badge span {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.property-price-section {
    text-align: left;
}

.price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.currency {
    font-size: 1.2rem;
    color: #6c757d;
    margin-right: 0.5rem;
}

.price-per-meter {
    color: #6c757d;
    font-size: 0.9rem;
}

.property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.property-images {
    margin-bottom: 2rem;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(1, 59, 69, 0.2);
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 20px;
}

.info-item .label {
    color: #6c757d;
    font-size: 0.9rem;
    display: block;
}

.info-item .value {
    color: var(--primary-color);
    font-weight: bold;
    display: block;
}

.description {
    color: #6c757d;
    line-height: 1.8;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.feature-item i {
    color: #28a745;
    font-size: 0.9rem;
}

.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.contact-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.phone-btn {
    background-color: #007bff;
}

.whatsapp-btn {
    background-color: #25d366;
}

.contact-btn i {
    font-size: 1.5rem;
}

.btn-label {
    font-weight: bold;
    display: block;
    font-size: 0.9rem;
}

.btn-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    display: block;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-form h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 6px;
    font-family: '29LT Zawi', sans-serif;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: '29LT Zawi', sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #d4c5a9;
}

.related-properties {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.related-properties h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
}

.related-content {
    padding: 1rem;
}

.related-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-location {
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.related-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.view-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.view-btn:hover {
    background-color: var(--tertiary-color);
}

/* Responsive Design for Property Details */
@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        text-align: center;
    }
    .header-menu{
        display: none;
    }
    
    .property-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .property-title-section h1 {
        font-size: 1.8rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        min-width: 100%;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .header-menu ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .offers-hero-content h1 {
        font-size: 2rem;
    }
}

/* Expand Media Button */
.expand-media-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(1, 59, 69, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expand-media-btn:hover {
    background: rgba(1, 59, 69, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(1, 59, 69, 0.3);
}

.expand-media-btn i {
    font-size: 12px;
}

/* Media Modal */
.media-modal {
    padding-top: 5.5rem;
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #013B45 0%, #1a5f6b 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-media-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-main-media {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalMainMedia {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-video {
    width: 100%;
    height: 100%;
}

.modal-navigation {
    direction: ltr;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-nav-btn {
    background: rgba(1, 59, 69, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}



.modal-media-info {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.modal-thumbnails-container {
    width: 100%;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-thumb {
    position: relative;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(1, 59, 69, 0.2);
}

.modal-thumb.active {
    border-color: #013B45;
    box-shadow: 0 0 0 2px rgba(1, 59, 69, 0.3);
}

.modal-thumb img,
.modal-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumb-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.property-title-section{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-main-media {
        height: 300px;
    }
    
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .modal-navigation {
        padding: 0 10px;
    }
    
    .modal-thumb {
        width: 80px;
        height: 55px;
    }
    
    .expand-media-btn {
        bottom: 15px;
        right: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .modal-thumbnails {
        gap: 8px;
    }
    
    .modal-thumb {
        width: 70px;
        height: 50px;
    }
    
    .modal-main-media {
        height: 250px;
    }
}
