.property-detail-container {
    padding-top: 80px;
}

.property-hero {
    background: transparent;
    padding: 0;
}

/* Full-bleed wrapper */
.hero-fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

/* Image Carousel Styles */
.image-carousel-container {
    position: relative;
    max-width: 100%;
    background: #000;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 460px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background-color: #000;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: translateX(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #000;
}

/* Navigation Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-btn i {
    font-size: 18px;
    color: #333;
}

/* Image Counter */
.image-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: white;
    border-color: white;
}

/* Auto-play Controls */
.autoplay-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

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

.autoplay-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.autoplay-btn i {
    color: white;
    font-size: 14px;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0) 100%);
    color: #fff;
    z-index: 8;
}

.hero-overlay .overlay-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.hero-overlay .overlay-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.hero-overlay .badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(2px);
}

.hero-overlay .badge-featured { background: #2ecc71; color: #111; }
.hero-overlay .badge-development { background: #3b82f6; }
.hero-overlay .badge-operation { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.25); }

.hero-overlay .overlay-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin-bottom: 6px;
}
.hero-overlay .overlay-breadcrumb a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}
.hero-overlay .overlay-breadcrumb .sep { opacity: 0.6; }

.hero-overlay .overlay-title {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-overlay .overlay-features {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 6px 0;
}
.hero-overlay .overlay-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.95);
}
.hero-overlay .overlay-features i {
    color: #fff;
    opacity: 0.95;
}

.hero-overlay .overlay-address {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.hero-overlay .overlay-right { text-align: right; }
.hero-overlay .overlay-price .currency { font-weight: 800; margin-right: 4px; }
.hero-overlay .overlay-price .amount { font-size: 1.7rem; font-weight: 900; letter-spacing: 0.5px; }

@media (max-width: 992px) {
  .hero-overlay { padding: 16px 0; }
  .hero-overlay .overlay-content { flex-direction: column; align-items: flex-start; }
  .hero-overlay .overlay-right { text-align: left; }
  .hero-overlay .overlay-title { font-size: 1.3rem; }
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.property-info {
    padding: 3rem 0;
}

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

.property-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
}

.operation-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.operation-venta { background: #e8f5e8; color: #2e7d32; }
.operation-alquiler { background: #e3f2fd; color: #1976d2; }
.operation-emprendimiento { background: #fff3e0; color: #f57c00; }

.featured-badge {
    color: #ff6b35;
    font-weight: 600;
}

.price-section {
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.main-price {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.2rem;
    opacity: 0.8;
}

.additional-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-item {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.description-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

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

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

.detail-item i {
    font-size: 1.5rem;
    color: rgba(145, 126, 98, 0.92);
    width: 30px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.location-item i {
    color: rgba(145, 126, 98, 0.92);
    width: 20px;
}

.map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #666;
}

.features-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

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

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

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
}

/* Characteristics Styles */
.characteristics-container {
    margin-bottom: 1.5rem;
}

.characteristics-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.characteristics-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.characteristics-category-title i {
    color: #667eea;
    font-size: 1.2rem;
}

.characteristics-category .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.characteristics-category .feature-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.characteristics-category .feature-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.characteristics-category .feature-item i {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.characteristics-category .feature-item span {
    font-weight: 600;
    color: #2c3e50;
}

.characteristic-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.development-info {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.property-sidebar {
    position: sticky;
    top: 100px;
}

.contact-card, .property-actions, .property-summary {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    max-width: 300px;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.2rem;
    display: block;
    font-size: 0.85rem;
}

.form-control {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 4px;
}

.btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item .label {
    color: #666;
    font-weight: 500;
}

.summary-item .value {
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .image-carousel {
        height: 45vh;
        min-height: 260px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .carousel-btn i {
        font-size: 14px;
    }
    
    .image-counter {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .autoplay-controls {
        top: 10px;
        left: 10px;
    }
    
    .autoplay-btn {
        width: 35px;
        height: 35px;
    }
    
    .autoplay-btn i {
        font-size: 12px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .thumbnail-gallery {
        gap: 8px;
        margin-top: 10px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .property-title {
        font-size: 2rem;
    }
    
    .main-price {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .location-info {
        grid-template-columns: 1fr;
    }
}

/* Emoji Icon Styles */
.emoji-icon {
    font-size: 1.3rem;
    display: inline-block;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.characteristics-category .feature-item .emoji-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tag-item .emoji-icon {
    font-size: 1rem;
    margin-right: 0.25rem;
}

/* Ensure emojis display properly */
.emoji-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI Symbol", "Noto Emoji";
    font-variant-emoji: emoji;
}

/* Zoom Button Styles */
.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.zoom-btn:active {
    transform: scale(0.95);
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.image-modal .modal-content {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.modal-carousel-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.modal-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent;
}

.modal-slide.active {
    opacity: 1;
}

.modal-image {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* Modal Navigation Buttons */
.modal-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-btn-prev {
    left: 20px;
}

.modal-btn-next {
    right: 20px;
}

/* Modal Counter */
.modal-counter {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10001;
}

/* Modal Indicators */
.modal-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
}

.modal-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-indicator.active {
    background: white;
    border-color: white;
}

.modal-indicator:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .modal-btn-prev {
        left: 10px;
    }
    
    .modal-btn-next {
        right: 10px;
    }
    
    .modal-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-counter {
        bottom: 60px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .modal-indicators {
        bottom: 20px;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .modal-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-close {
        top: -35px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Map Section Styles */
.map-container {
    margin-top: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.map-fallback {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.map-fallback a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.map-fallback a:hover {
    text-decoration: underline;
}

.address-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-info i {
    color: #007bff;
}

.address-info span {
    color: #495057;
    font-weight: 500;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}


/* Static hero: single image, hide controls, click opens modal */
.image-carousel[data-static-hero="true"] { cursor: zoom-in; }
.image-carousel[data-static-hero="true"] .carousel-btn,
.image-carousel[data-static-hero="true"] .autoplay-controls,
.image-carousel[data-static-hero="true"] .image-counter,
.image-carousel[data-static-hero="true"] .carousel-indicators { display: none !important; }
.image-carousel[data-static-hero="true"] .zoom-btn { position:absolute; inset:0; width:100%; height:100%; background:transparent; opacity:0; pointer-events:auto; }
.image-carousel[data-static-hero="true"] ~ .thumbnail-gallery { display:none !important; }