.prop-label {
    position: absolute;
    min-width: 100px;
    top: 15px;
    left: 20px;
    padding: 5px 10px;
    text-align: center;
    color: #000;
    background: #f5f5eb;
    box-shadow: 0 0 3px rgba(0, 0, 0, .3);
    text-transform: uppercase;
    font-size: 16px;
    z-index: 9;
}

.sold .prop-label,
.sold.prop-label {
    color: #fff;
    background: #EE0000;
}

.open-house {
    border: solid 1px #000;
    border-radius: 5px;
}

.mix-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* START OF SINGLE PROPERTY */
#slider {
    margin-top: 150px;
    margin-bottom: 30px;
}

#slider .custom-container {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
    display: block;
    position: relative;
}

@media (max-width: 768px) {
    #slider .custom-container {
        max-width: 100%;
    }
}

#slider .caption {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 14px;
    line-height: 1.2;
    color: #000;
    background: rgba(255, 255, 255, .8);
    padding: 10px 15px;
    z-index: 2;
}

#slider img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

#slider .swiper-button-next, 
#slider .swiper-button-prev {
    position: absolute;
    display: block;
    min-width: 100px;
    min-height: 50px;
    color: #000;
    background: rgba(255, 255, 255, .8);
    outline: none;
    cursor: pointer;
    overflow: hidden;
    transition: 0.4s all ease;
    z-index: 1000;
}

#slider .swiper-button-prev:after, 
#slider .swiper-button-next:after {
    font-size: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#slider .swiper-button-next:hover, 
#slider .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.2)
}

.details_about {
    padding-bottom: 50px;
}

.details_about h4 {
    display: block;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    color: #000;
    margin-top: 38px;
}

.details_about ul:not(.nav-tabs) li {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    color: #727272;
    border-right: 1px solid #727272;
    margin-top: 11px;
    margin-bottom: 10px;
    padding: 0 8px;
}

.details_about .nav-tabs {
    justify-content: center;
    gap: 10px;
    border-bottom: none;
    margin-bottom: 30px;
}

.details_about .nav-tabs.single-nav .nav-link {
    color: #2b2b2b;
    border: solid 1px #2b2b2b;
    border-radius: 0;
}

.details_about .nav-tabs.single-nav .nav-link.active, 
.details_about .nav-tabs.single-nav .nav-link:hover {
    color: #fff;
    background: #2b2b2b;
    border-color: #2b2b2b;
    border-radius: 0;
}

@media (max-width: 768px) {
    .details_about .nav-tabs.single-nav {
        gap: 10px;
    }

    .details_about .nav-tabs.single-nav li.nav-item {
        min-width: 135px;
        text-align: center;
    }
}

.resp_table {
    overflow-x: auto;
}

.prop-table.prop-table-header {
    color: #000;
    background-color: #fff;
}

.table thead.prop-table th {
    color: #000;
    background-color: #fff;
}

#map, 
#streetMap {
    width: 100%;
    height: 500px;
}

@media (max-width: 768px) {
    #map, 
    #streetMap {
        height: 400px;
    }
}

.agent {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.agent .agent-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    background: #fff;
    border-radius: 50%;
    margin-bottom: 20px;
}

.agent-name {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #000;
}

.agent-info {
    margin: 0;
    padding: 0;
}

.agent ul.agent-info li {
    display: block;
    text-align: center;
    border-right: none;
    padding: 0;
}

.agent-info li a {
    font-weight: 500;
    text-transform: none;
    color: #000;
}

.agent ul.agent-info li a > i {
    padding-right: 10px;
}
/* END OF SINGLE PROPERTY */

/* START OF HOME EVALUATION */
.homeEvalutation {
    padding: 0 50px 50px 50px;
}

@media (max-width: 768px) {
    .homeEvalutation {
        padding: 0 0 25px 0;
    }
}

.homeEvalutation #first {
    display: block;
}

.homeEvalutation fieldset {
    display: none;
    margin-top: 30px;
}

.homeEvalutation .title-wrapper {
    margin-bottom: 40px;
}

.homeEvalutation .single-s {
    font-weight: 500;
    color: #dc3545;
    text-transform: uppercase;
    border: solid 1px #dc3545;
    padding: 25px 15px;
}

.homeEvalutation .single-s.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* home evaluation form and map */
#homeEval p {
    font-size: 20px;
    color: #000;
    margin: 0;
}

.homeEvalutation input[type=text], 
.homeEvalutation select {
    display: block;
    width: 100%;
    height: 50px;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    background: #fff;
    border: 1px solid #dc3545;
    outline: none;
    padding: 0 10px;
    margin-bottom: 15px;
    -webkit-appearance: none;
    border-radius: 0;
}

.homeEvalutation #map {
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
}

.homeEvalutation input[type=submit], 
.homeEvalutation input[type=button] {
    display: inline-block;
    width: 250px;
    font-size: 16px;
    font-weight: 400;
    line-height: 57px;
    letter-spacing: 1.61px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
    padding: 0px 15px;
    transition: all ease 0.5s;
    float: right;
}

.homeEvalutation input[type=button].next_btn {
    border-radius: 4px;
}

.homeEvalutation #second input[type=button] {
    width: 175px;
}

.homeEvalutation input[type=submit]:hover, 
.homeEvalutation input[type=button]:hover, 
.homeEvalutation #second input[type=button]:hover {
    background: #c82333;
    border-color: #c82333;
    color: #fff;
}

/* Main Titles */
.homeEvalutation .main-title {
    text-align: center;
    margin-bottom: 30px;
}

.homeEvalutation .main-title h1 {
    font-size: 24px;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.homeEvalutation .main-title h2 {
    font-size: 36px;
    color: #dc3545;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 30px;
}

.homeEvalutation .address-subtitle {
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
}

/* END OF HOME EVALUATION */

.map-container {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100vh;
  min-height: 500px;
}

/* Make map tiles black and white but keep markers colored */
.map-container .leaflet-tile-pane {
  filter: grayscale(100%);
}

/* Ensure markers and overlays stay colored */
.map-container .leaflet-marker-pane,
.map-container .leaflet-overlay-pane,
.map-container .leaflet-popup-pane,
.map-container .leaflet-marker-icon {
  filter: none !important;
}

/* Style the popup to match property cards */
.leaflet-popup {
  min-width: 300px;
}

.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
  margin: 0;
  width: 300px !important;
}

.map-property-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-property-card figure {
  margin: 0;
  position: relative;
  padding-top: 66.67%;
  background: #f5f5f5;
}

.map-property-card figure img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-property-card .no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #666;
  font-size: 14px;
}

.map-property-card .details {
  padding: 15px;
}

.map-property-card .price {
  color: #dc3545;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.map-property-card .address {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

.map-property-card .features {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #666;
}

.map-property-card .type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1;
}

.map-property-card .status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc3545;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1;
}

.map-property-card .status-badge.sold {
  background: #28a745;
}

.map-container > div {
  height: 100%;
  width: 100%;
}

.map-container #map,
.map-container .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

@media (max-width: 991.98px) {
  .map-container {
    position: static;
    height: 400px;
    min-height: 300px;
  }
  
  .map-container #map,
  .map-container .leaflet-container {
    height: 100%;
    min-height: 300px;
  }
}

.leaflet-popup-close-button {
  z-index: 2;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.flatpickr-wrapper {
    width: 100%;
}
