/**
 * Property Listing Filter Styles
 *
 * @package PropertyListing
 * @since 1.0.0
 */

/* Controls */
.property-listing-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.listing-count {
  font-size: 20px;
}
.filter-toggle {
  background: #e8e8e8;
  color: #000000;
  border: 0px solid #e8e8e8;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}
.filter-toggle:hover {
  background: #000000;
  color: #ffffff;
}

.toggle-icon {
  font-size: 12px;
}

/* Filter Container */
.property-filter-container {
  background: #f2f0ed;
  padding: 20px;
}
.property-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.property-filter-form .filter-group{
    display: flex;
    flex-direction: column;
    width: calc(20% - 12px);
    border-right: 1px solid #cdcdcd;
    padding-right: 12px;
}
.property-filter-form .filter-group:last-child{
  border-right: 0px solid #cdcdcd;
  padding-right: 0px;
}
.property-filter-form .filter-group .filter-title{
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 20px;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Custom Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    user-select: none;
}

.filter-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #333;
}

.filter-checkbox input:checked ~ .checkbox-custom {
  background-color: #333;
}

.filter-checkbox input:checked ~ .checkbox-custom:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Price Filters */
.price-filters {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.price-field label {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.price-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  font-size: 18px;
  border: 1px solid #ddd;
}

.currency-symbol {
  padding: 10px;
  background: #333;
  color: #fff;
  font-weight: 600;
}

.price-select {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 14px;
  appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
    no-repeat right 10px center;
  background-size: 20px;
  cursor: pointer;
}

.price-select:focus {
  outline: none;
}

/* Listing Table */
.property-listing-table-wrapper {
  position: relative;
  margin-top: 30px;
}

.listing-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.listings-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.listings-table thead {
  background: #e6bb5a;
  border-bottom: 0px;
}

.listings-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 20px;
  color: #000000;
}

.listings-table td {
  padding: 20px 15px;
  border-bottom: 1px solid #e4e1df;
  font-size:20px;
}

.listing-row:hover {
  background: #fafafa;
}

.listing-name strong {
  font-size: 20px;
}
.property-type {
  font-weight: 500;
  margin-bottom: 5px;
}

.street-name {
  font-size: 16px;
}

.plan-item {
  display: inline-block;
}

.floor-info {
  font-size: 16px;
  margin-top: 5px;
}

.listing-price {
  font-weight: 600;
}

.full-price {
  font-size: 20px;
  margin-bottom: 5px;
}

.share-price {
  font-size: 16px;
}

.status-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  border: 2px solid;
}

.status-available {
  color: #28a745;
  border-color: #28a745;
  background: #f0fff4;
}

.status-coming-soon {
  color: #ffc107;
  border-color: #ffc107;
  background: #fffbf0;
}

.status-reserved {
  color: #dc3545;
  border-color: #dc3545;
  background: #fff5f5;
}

.status-sold {
  color: #6c757d;
  border-color: #6c757d;
  background: #f8f9fa;
}

.view-button {
  display: inline-block;
  padding: 10px 30px;
  background: #000000;
  border: 1px solid #000000;
  border-radius: 5px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}
.view-button:hover {
    background: #ffffff;
    color: #000000 !important;
}

.no-listings {
  text-align: center;
  padding: 60px 20px;
  background: #f8f8f8;
}

.no-listings p {
  font-size: 16px;
  color: #666;
}

.price-sort {
  cursor: pointer;
  font-size: 12px;
  margin-left: 5px;
}

/* Responsive */
@media (max-width: 991px) {
  .property-filter-form{ row-gap: 25px; }
  .property-filter-form .filter-group { width: calc(33.33% - 10px); }
  .property-filter-form .filter-group:nth-child(3){ border-right: 0px solid #cdcdcd; padding-right: 0px; }
}
@media (max-width:767px) {
  .listings-table { display: block; overflow-x: auto; }
  .property-filter-form .filter-group { width: calc(50% - 8px); }
  .property-filter-form .filter-group:nth-child(3){ border-right: 1px solid #cdcdcd; padding-right: 12px; }
  .property-filter-form .filter-group:nth-of-type(even) { border-right: 0px solid #cdcdcd; padding-right: 0px; }
}
@media (max-width:576px) {
  .property-filter-form{ row-gap: 25px; }
  .property-filter-form .filter-group { 
    width:100%; border-right: 0px solid #cdcdcd !important; padding-right: 0px !important; 
    border-bottom: 1px solid #cdcdcd !important;
    padding-bottom: 15px;
  }
  .property-filter-form .filter-group:last-child{ 
    border-bottom: 0px solid #cdcdcd !important;
    padding-bottom:0px !important;
  }
}


/* Plot Details CSS */
.plotinfo-outer { padding-bottom: 80px; padding-top: 80px; }
.plotinfo-outer .plotinfo-img img{ margin-bottom:30px; }
.plotdetailsOuter{ margin-top:30px; }
.plotdetails { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #ffffff; }
.plotinfoHead{
    padding: 10px 15px;
    background: #000000;
    color: #ffffff;
    font-size: 24px;
}
.plotinfo { display: flex; border-bottom: 1px solid #ffffff; align-items: stretch; }
.plotinfo-lable {
    padding: 10px 15px;
    min-width: 200px;
    background: #e6bb5a;
    color: #ffffff;
    font-size: 20px;
    text-transform: capitalize;
}
.plotinfo-value {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    text-align: left;
    padding: 10px 15px;
    background: #ffefd7;
    width: 100%;
}
.plotcta{ padding: 20px; width: auto; }
.plotcta a{ display: inline-block; }
.download-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}
.plotcta .download-icon svg path { fill: #000000 !important; }
.plotmapOuter-img { background: #fff; }
.plotmapOuter .image-caption { font-size: 16px; font-style: italic; color: #868686; }
.plotmapOuter img{ margin: 0 auto 10px; }
.plot-table { display: flex; flex-direction: column; gap: 5px; }
.plot-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: normal;
    background: #ffefd7;
}
.plot-row.header { background: #e6bb5a; font-weight: 800; font-size: 20px; color: #ffffff; }
.plot-row .label { font-weight: 600; color: #333; font-size: 20px;  }
.plot-row.highlight { background: #e6bb5a; color: #ffffff; font-weight: 600; }
.plot-row.highlight .label,
.plot-row.highlight strong{ color: #ffffff; }
.call-section {
    background: rgb(198, 180, 227);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}
.call-box { text-align: center; }
.call-icon {
    width: 90px;
    height: 90px;
    background: #c099ff;
    color: #2f3e4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}
.call-icon svg{ width: 40px; }
/* Responsive */
@media only screen and (max-width: 1440px) {
    .plotinfo-outer { padding-bottom:40px; padding-top:40px; }
}
@media (max-width: 991px) {
    .plotdetails { grid-template-columns: 1fr; }
    .plotinfo { border-right:none !important; }
}
@media (max-width:767px) {
    .plot-row { grid-template-columns: 1fr; gap: 5px; background: #ffefd7; }
    .plot-row:nth-child(even) { background: #e6bb5a; }
    .plot-row.header { display:none; }
    .visible-mob{ font-weight: bold; color: #000;  margin-right: 10px; display:inline-block !important; }
}