.properties-search-bar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.search-form .search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.search-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-field .range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-field .range-inputs select {
    flex: 1;
}

.search-field .range-inputs span {
    color: #666;
}

.search-button-field {
    display: flex;
    gap: 10px;
}

.btn-search,
.btn-clear {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search {
    background: #2c5282;
    color: white;
    flex: 1;
}

.btn-search:hover {
    background: #1a365d;
}

.btn-clear {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-clear:hover {
    background: #cbd5e0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.property-images {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.property-gallery-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: #f56565;
    color: white;
}

.btn-favorite .heart-icon {
    font-size: 18px;
}

.btn-schedule-visit {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-schedule-visit:hover {
    background: white;
}

.property-content {
    padding: 20px;
}

.property-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.property-title a {
    color: #2d3748;
    text-decoration: none;
}

.property-title a:hover {
    color: #2c5282;
}

.property-location {
    color: #718096;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.property-price-section {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    margin-bottom: 15px;
}

.property-price {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c5282;
}

.property-available {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

.property-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 10px;
}

.operation-badge {
    background: #bee3f8;
    color: #2c5282;
}

.type-badge {
    background: #feebc8;
    color: #c05621;
}

.property-status {
    font-size: 13px;
    color: #e53e3e;
    font-style: italic;
    margin: 5px 0;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.property-features .feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px !important;
    color: #4a5568;
}

.property-features .feature-icon {
    font-size: 14px !important;
}

.property-features .feature-value {
    font-size: 12px !important;
}

.no-properties {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 18px;
    grid-column: 1 / -1;
}

.property-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.property-gallery-section {
    margin-bottom: 30px;
    width: 100%;
}

.property-tabbed-gallery .gallery-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.property-tabbed-gallery .gallery-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #718096;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.property-tabbed-gallery .gallery-tab:hover {
    color: #2c5282;
}

.property-tabbed-gallery .gallery-tab.active {
    color: #2c5282;
    border-bottom-color: #2c5282;
}

.property-tabbed-gallery .gallery-content {
    display: none;
}

.property-tabbed-gallery .gallery-content.active {
    display: block;
}

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

.gallery-carousel {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-carousel .gallery-slide {
    min-width: calc(33.333% - 7px);
    flex-shrink: 0;
}

.gallery-carousel img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
}

.carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

@media (max-width: 768px) {
    .property-tabbed-gallery .gallery-tab {
        padding: 10px 16px;
        font-size: 14px;
        flex: 1 1 auto;
        text-align: center;
        min-width: fit-content;
    }
    
    .gallery-carousel .gallery-slide {
        min-width: 100%;
    }
    
    .gallery-carousel {
        gap: 0;
    }
    
    .gallery-carousel img {
        height: 250px;
    }
    
    .carousel-nav {
        padding: 10px;
        font-size: 16px;
    }
}

.property-header {
    margin-bottom: 30px;
}

.property-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.property-header .property-title {
    font-size: 32px;
    margin-bottom: 10px;
    flex: 1;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #e53e3e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    margin: 10px 0 0 0;
    box-sizing: border-box;
}

.btn-download-pdf:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.pdf-icon {
    font-size: 18px;
    line-height: 1;
}

.property-address {
    font-size: 16px;
    color: #718096;
}

.property-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.property-price-box {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.property-price-box h3 {
    margin: 0 0 10px 0;
    color: #718096;
    font-size: 14px;
    text-transform: uppercase;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c5282;
    margin: 0;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.feature-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.feature-label {
    display: block;
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.feature-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.property-status-box {
    background: #fff5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.property-description {
    margin-top: 30px;
}

.property-description h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.property-virtual-tour-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.property-virtual-tour-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2d3748;
}

.virtual-tour-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f7fafc;
}

.virtual-tour-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.contact-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .contact-box {
        position: sticky;
        top: 20px;
    }
}

.contact-box h3 {
    margin: 0 0 20px 0;
}

.agent-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2c5282;
    margin: 0 auto 12px;
    display: block;
}

.agent-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 10px 0;
}

.btn-primary,
.btn-secondary,
.btn-contact,
.btn-schedule {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0;
    box-sizing: border-box;
}

.btn-primary,
.btn-contact {
    background: #2c5282;
    color: white;
}

.btn-primary:hover,
.btn-contact:hover {
    background: #1a365d;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-secondary,
.btn-schedule {
    background: white;
    color: #2c5282;
    border: 2px solid #2c5282;
    margin: 10px 0 0 0;
}

.btn-secondary:hover,
.btn-schedule:hover {
    background: #f7fafc;
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 768px) {
    .search-form .search-row {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        order: -1;
    }
}

.property-amenities-section,
.property-nearby-section,
.property-map-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.property-amenities-section h3,
.property-nearby-section h3,
.property-map-section h3 {
    font-size: 24px;
    color: #2c5282;
    margin-bottom: 20px;
    font-weight: 700;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.amenity-icon {
    font-size: 24px;
    line-height: 1;
}

.amenity-name {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.nearby-places-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.nearby-place-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nearby-place-item:hover {
    background: #f7fafc;
    border-color: #2c5282;
    transform: translateX(5px);
}

.place-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.place-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.place-name {
    font-size: 15px;
    color: #2d3748;
    font-weight: 600;
}

.place-distance {
    font-size: 13px;
    color: #718096;
}

.property-map-section {
    margin-bottom: 40px;
}

#property-map {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content strong {
    color: #2c5282;
    font-size: 16px;
}

@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .nearby-places-list {
        grid-template-columns: 1fr;
    }
    
    .amenity-item,
    .nearby-place-item {
        padding: 10px 12px;
    }
    
    .amenity-icon,
    .place-icon {
        font-size: 20px;
    }
    
    #property-map {
        height: 300px !important;
    }
}

.property-map-section-full {
    margin-top: 50px;
    width: 100%;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 40px 20px;
}

.property-map-section-full h3 {
    font-size: 28px;
    color: #2c5282;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.property-map-section-full #property-map {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

@media (max-width: 768px) {
    .property-map-section-full {
        padding: 30px 15px;
        margin-top: 30px;
    }
    
    .property-map-section-full h3 {
        font-size: 22px;
    }
    
    .property-map-section-full #property-map {
        height: 350px !important;
    }
}

.similar-properties-section {
    margin-top: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.similar-properties-section h3 {
    font-size: 28px;
    color: #2c5282;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.similar-properties-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.similar-properties-grid {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
    position: relative;
    transition: transform 0.4s ease-in-out;
}

.similar-properties-grid .property-card {
    font-size: 14px;
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
}

.similar-properties-grid .property-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.similar-properties-grid .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-properties-grid .property-info {
    padding: 15px;
}

.similar-properties-grid .property-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.similar-properties-grid .property-location {
    font-size: 13px;
    margin-bottom: 8px;
}

.similar-properties-grid .property-price {
    font-size: 18px;
    margin-bottom: 10px;
}

.similar-properties-grid .property-features {
    gap: 8px;
}

.similar-properties-grid .property-features .feature {
    font-size: 12px;
    padding: 4px 8px;
}

.similar-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 24px;
    color: #2c5282;
}

.similar-carousel-nav:hover {
    background: #2c5282;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.similar-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.similar-carousel-nav.prev {
    left: 0;
}

.similar-carousel-nav.next {
    right: 0;
}

@media (max-width: 1200px) {
    .similar-properties-grid .property-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 900px) {
    .similar-properties-grid .property-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    
    .similar-properties-carousel-wrapper {
        padding: 0 40px;
    }
    
    .similar-carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .similar-properties-grid {
        gap: 15px;
    }
    
    .similar-properties-grid .property-card {
        flex: 0 0 calc(100% - 0px);
        min-width: calc(100% - 0px);
    }
    
    .similar-properties-section {
        padding: 30px 15px;
        margin-top: 30px;
    }
    
    .similar-properties-section h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .similar-properties-carousel-wrapper {
        padding: 0 35px;
    }
    
    .similar-carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

.property-branding {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background: #f7fafc;
    border-top: 2px solid #e2e8f0;
}

.property-branding p {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.property-branding a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.property-branding a:hover {
    color: #1a365d;
    text-decoration: underline;
}
