.property-card {
  border: 1px solid #eaeaea;
  background-color: #FAF8F2;
  font-family: sans-serif;
  text-align: left; 
}

.property-card h2 {
  font-size: 1.3rem; 
  font-weight: 400;
  color: #000;
}

.property-card h2 span {
  font-weight: 900 !important;
}

.property-image {
  position: relative;
  padding-top: 60%; /* 16:9 ratio */
  background-size: cover;
  background-position: center;
}

.property-type {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(240, 240, 240, 0.9);
  padding: 4px 8px;
  font-size: 14px;
  color: #333;
}

.property-body {
  padding: 16px;
}

.property-price {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.property-address {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.property-details {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddd;
  padding-top: 12px;
}

.property-details .detail {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #333;
}

.property-details img {
  width: 20px;
  height: 20px;
}

#gallery .row {
  max-width: 100% !important; 
  width: 100% !important; 
  padding: 0px;
  margin: 0px;
}

#gallery .gallery-item
 {
    padding: 0px !important; 
}

.overlay-content {
  position: absolute;
  top: 80%;
  left: 20%;
  width: 100%;
  color: white;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.overlay-content i {
  margin-right: 6px;
}

.virtual-tour {
  background-color: red;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 13px;
  color: #fff;
}

.photo-count {
  background-color: red;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 13px;
}
img {
  width: 100%;
}

.property-title {
  font-weight: 600;
  font-size: 2rem;
}

.property-price {
  color: #000;
}

.property-location i {
  vertical-align: middle;
}
@media only screen and (min-width: 600px) {
.align-right {
  text-align: right; 
}
}

.estate_property-template-default .tab a{
   background-color: #333; 
  color: #fff !important; 
}
.estate_property-template-default .tab.active  a {
  background-color: #e60000 !important; 
  color: #fff !important;  
}

/*
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
 .map-container {
     position: relative;
 }
#map {
    height: 450px; /* This will make it take up 50% of the viewport height */
    width: 100%;
    position: relative;
}
     
.icons {
    width: 30px !important;
}
.first_color {
    background-color: #FAF8F2;
}







    .tab-container {
  margin: auto;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid #ddd;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  cursor: pointer;
  background: #f1f1f1;
  border: none;
  border-bottom: 2px solid transparent;
  transition: background 0.3s;
}

.tab-btn.active {
  background: white;
  border-bottom: 2px solid #007BFF;
}

.tab-content {
  display: none;
  padding: 15px;
  border: 1px solid #ddd;
  border-top: none;
}

.tab-content.active {
  display: block;
}

/* Accordion styles for mobile */
.accordion-title {
  display: none;
  margin: 0;
  padding: 15px;
  background: #eee;
  border-top: 1px solid #ddd;
  cursor: pointer;
}

.accordion-body {
  display: none;
  padding: 15px;
  border: 1px solid #ddd;
  border-top: none;
}

/* Responsive breakpoint */
@media (max-width: 768px) {
  .tab-nav {
    display: none;
  }

  .accordion-title {
    display: block;
  }

  .tab-content {
    display: block;
    padding: 0;
    border: none;
  }
}
@media (max-width: 768px) {
  .tab-content:first-child .accordion-body {
    display: block;
  }
}

#photo-gallery img {
    width: 100%;
    max-width: 100% !important;
    height: auto !important;
    
    
}
.img-fluid {
    max-width: 100% !important;
    height: auto;
}

#photo-gallery, #photo-gallery >*, #photo-gallery .col-6, #photo-gallery .col-lg-6 {
    padding: 1px !important;
    margin: 0px !important;
}
.overlay-content {
  position: absolute;
  top: 65%;
  right: 2%;
  width: 175px !important;
  color: white;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.virtual-tour {
  background-color: red;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 13px;
  color: #fff;
}

.photo-count {
  background-color: red;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 13px;
} 
.overlay-content i {
  margin-right: 6px;
}
.text-dark {
    color: #000 !important;
}
@media only screen and (max-width: 600px) {
 .overlay-content {
    top: 50%;
    left: 0%;
    gap: 5px;
}
.tabbed-content .nav-tabs>li, .tabbed-content .nav-tabs>li a {
     margin: 1px !important;
    width: 100%;
}
}

/* Force full width on constrained blocks (except inside .container) */
.single-estate_property .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Restore Bootstrap container behavior */
.single-estate_property .container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 1.5rem);
  padding-left: var(--bs-gutter-x, 1.5rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .single-estate_property .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .single-estate_property .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .single-estate_property .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .single-estate_property .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .single-estate_property .container {
    max-width: 1320px;
  }
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  white-space: nowrap;
}

.card .card-price {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 2px 5px;
	background-color: #fff;
	box-shadow: 1px 2px 1px rgba(94, 93, 99, .08), 0 1px 2px rgba(61, 60, 66, .12);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 500;
	font-size: 11px;
}
.card span.card-title {
	color: #fff;
	font-weight: 300;
	font-size: 21px;
}
.card .card-image .card-title {
	position: absolute;
	left: 12px;
	margin: 0;
	top: 12px;
	padding-left: 5px;
	padding-right: 5px;
	color: #fff;
	font-size: 14px;
	background-color: #000;
	height: 25px;
}
.card .card-content span.card-title {
	line-height: 48px;
}

.card-price.Vendu, .text-danger.Vendu, .card-price.Sold, .text-danger.Sold {
    background-color: #d0103a;
    color: #fff;
    max-width: 180px;
    text-align: center;
}
.custom_properties a {
    text-decoration: none !important;
}
.row {
    display: flex !important;
}
.info-avatar img {
    max-width: 100px !important;
    height: auto;
}
#whatsapp-chat {
    border: 1px solid;
}
.position-relative, .card-image {
    position: relative !important;
}
.single-estate_property .ast-container, .single-estate_property .ast-article-single {
    width: 100% !important;
    padding: 0px !important;
    max-width: 100% !important;
}
.single-layout-1 .entry-header {
    display: none !important;
}
.tab-btn {
    color: #000 !important;
}
#whatsapp-chat input {
    width: 100% !important;
}

.single-estate_property .ast-container {
        max-width: 100% !important;
        padding: 0px !important;
    }
.single-estate_property #primary, .single-estate_property .container-fluid  {
    padding: 0px !important;
    margin: 0px !important;
}

