.property-hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.property-carousel {
    height: 100%;
}

/* .property-carousel .carousel-item img {
    height: 60vh;
    object-fit: cover;
    width: 100%; 
} */

.property-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: var(--primary);
}

.video-container {
    height: 60vh;
    width: 100%;
    position: relative;
}

.video-container iframe {
    height: 60vh;
    width: 100%;
}

.media-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 25;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
}

.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
    z-index: 15;
}

/* Fix carousel controls z-index */
.carousel-control-prev,
.carousel-control-next {
    z-index: 30 !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    z-index: 25 !important;
    bottom: 80px;
    /* Move indicators up to avoid text overlap */
}

/* Responsive typography */
.property-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: bold;
    line-height: 1.2;
}

.property-location {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.price-tag {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.price-period {
    font-size: 0.6em !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .property-overlay {
        padding: 1rem;
        z-index: 15;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        z-index: 30 !important;
    }

    .carousel-indicators {
        bottom: 100px;
        /* More space on mobile */
    }

    .media-overlay {
        top: 10px;
        left: 10px;
        z-index: 25;
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .fullscreen-btn {
        bottom: 120px !important;
        right: 10px !important;
        z-index: 35 !important;
    }
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}

.property-actions {
    /*position: absolute;
        top: 20px;
        right: 20px;*/
    margin-top: 10px;
    z-index: 20;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: none;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card table td,
.info-card table th {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 200px;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-agent-card {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    border-radius: 15px;
    padding: 2rem;
}

.property-stats {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    word-break: break-word;
    overflow-wrap: break-word;
}

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

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.location-info {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    padding: 2rem;
}

.related-property-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.btn-primary-custom {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    border-radius: 2px;
}

/* Location Information Styles */
.location-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
}

.location-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.location-stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    display: inline-block;
}

/* Multi-Language Modal Styles */
.language-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.language-tabs .btn {
    transition: all 0.3s ease;
}

.language-tabs .btn.active {
    background-color: #0d6efd;
    color: white;
}

.language-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.language-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Markdown Content Styling */
.property-description {
    font-size: 1rem;
    line-height: 1.8;
}

.property-description p {
    margin-bottom: 1.25rem;
}

.property-description h1,
.property-description h2,
.property-description h3,
.property-description h4 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.property-description h1 {
    font-size: 1.75rem;
}

.property-description h2 {
    font-size: 1.5rem;
}

.property-description h3 {
    font-size: 1.25rem;
}

.property-description h4 {
    font-size: 1.125rem;
}

.property-description ul,
.property-description ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.property-description li {
    margin-bottom: 0.5rem;
}

.property-description code {
    background: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: "Monaco", "Menlo", monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.property-description pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.property-description pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.property-description blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #4a5568;
    font-style: italic;
}

.property-description a {
    color: var(--primary);
    text-decoration: underline;
}

.property-description a:hover {
    color: var(--primary-dark);
}

.property-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.property-description table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
}

.property-description table th,
.property-description table td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

.property-description table th {
    background: #f7fafc;
    font-weight: 600;
}

.property-description hr {
    margin: 2rem 0;
    /* some gradient */
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
}
