header#main-header {
    padding: 1rem;
    height: 60px;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

.page-template-single-property #main-content {
    background-color: #fafafa;
}

.property-single {
    padding: 40px 0;
}

.property-header {
    margin-bottom: 30px;
}

.property-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.property-meta .feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-meta .feature img {
    width: 24px;
    height: 24px;
}

.property-meta .feature-value {
    font-size: 1.1rem;
    color: var(--background-secondary);
}

.property-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.property-details {
    background: #f6f6f6;
    padding: 20px;
    border-radius: 10px;
}

.price-apply-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .price-apply-wrapper {
        gap: 0px;
    }
}

.property-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--background-secondary);
    margin-bottom: 0;
    white-space: nowrap;
    letter-spacing: -2px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.location-icon img {
    width: 24px;
    height: 24px;
}

.property-type .label {
    color: #666;
    margin-right: 10px;
}

.property-description {
    margin-top: 20px;
}

#property-map {
    width: 100%;
    height: 500px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Estilos do mapa iguais ao properties-map */
.leaflet-container {
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #666 !important;
    border: none !important;
}

.leaflet-control-zoom a:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

@media (min-width: 768px) {
    .property-content {
        grid-template-columns: 2fr 1fr;
    }
}

.property-info {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.property-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.property-image {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.apply-section {
    padding: 20px;
    text-align: center;
}

.btn-apply {
    padding: 12px 30px;
    font-size: 1.1rem;
    white-space: nowrap;
    width: auto;
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: var(--background-secondary);
    color: #fff!important;
}

.thumbnails-gallery {
    margin-top: 20px;
}

.thumbnail {
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail:hover {
    opacity: 0.8;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    overflow: hidden;
}

.modal-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-slider {
    width: 100%;
    height: 100vh;
}

#modal-slider .splide__track,
#modal-slider .splide__list {
    height: 100%;
}

#modal-slider .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
    padding: 40px;
}

#modal-slider .splide__slide img {
    max-width: 90vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.close-modal {
    position: fixed;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 100000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgb(37, 37, 37);
}

/* Personalização do Splide */
.splide__arrow {
    background: rgba(255, 255, 255, 0.8);
}


.splide__pagination__page.is-active {
    background: white;
}

.splide__pagination__page {
    background: rgb(113 113 113 / 50%);
}

.icon-box-card i {
    padding: 10px;
    background: #eee;
    border-radius: 6px;
    color: #2f2f2f;
    font-size: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 768px) {
    .property-meta.gap-4 {
        gap: 1rem!important;
    }

    .property-image {
        height: 300px;
    }
    
}


.apply-card-modal {
    background: rgba(255, 255, 255, 0.95);
    height: 100%;
    padding: 2rem;
    border-radius: 8px;
}

.apply-card-modal h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.apply-card-modal .btn-apply {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}


.modal-header {
    padding: 1rem;
    transition: white;
    position: relative;
    top: 4rem;
    margin: 0;
    border: none;
}

.modal-logo {
    max-width: 150px;
}

.homeaid-modal-logo {
    width: 100%;
    height: auto;
}

.leaflet-container .leaflet-control-attribution {
    display: none;
  }

  .amenity-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
}

.virtual-tour-container iframe {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .amenity-list {
        gap: 1rem;
        grid-template-columns: 1fr 1fr;
    }
}


.sp-container {
    max-width: 1000px;
    margin: 0 auto;
}

.property-featured-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.zoom-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-indicator i {
    font-size: 24px;
}

.zoom-indicator span {
    font-size: 16px;
    font-weight: 500;
}

.property-featured-image:hover .zoom-indicator {
    opacity: 1;
}

#thumbnail-slider .thumbnail{
    height: 100px; 
    background-size: cover; 
    background-position: center;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
}

#thumbnail-slider .thumbnail.active {
    border: 2px solid var(--secondary-color);
    padding: 6px;
    opacity: 1;
}

.mls-logo {
    width: 150px;
    height: auto;
}

.location-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--background-secondary);
}


.property-share .btn-apply {
    padding: 8px 18px;
    font-size: 1rem;
    min-width: 50px;
}

.thumbnails-gallery .splide__slide {
    width: auto !important;
}