/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f7f8fa;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Notice Banner */
.notice-banner {
  background-color: #dddada;
  color: #000;
  padding: 25px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Header */
.header {
  background-color: #fff;
  padding: 20px 0 15px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.logo-img {
  height: 100px;
  object-fit: contain;
}

.top-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #000;
  align-items: center;
}

.top-nav a {
  color: #000;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* Search Filters *-/
.search-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
  border: none;
  padding: 0;
  background: transparent;
  margin-bottom: 30px;
}

/* Add border and styling to each individual filter/select/button *-/
.search-filters > * {
  border: 1px solid #000;
  border-radius: 6px;
  padding: 6px 12px;
  background: white;
  color: #000;
  font-weight: 600;
  min-width: 130px;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

/* Location search wrapper *-/
.location-search {
  border: 1px solid #000;
  border-radius: 6px;
  padding: 4px 10px;
  background: white;
  color: #000;
  min-width: 230px;
  gap: 8px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  margin-top: -3px;
}

/* Remove inner input border inside location search *-/
.location-search input {
  border: none;
  outline: none;
  font-size: 14px;
  flex-grow: 1;
  color: #000;
  padding: 0;
  background: transparent;
}

/* Remove borders from text inputs and selects *-/
.search-filters input[type="text"],
.search-filters select {
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  padding: 0;
  font-weight: 600;
  color: #000;
  width: 100%;
  min-width: unset;
}

/* Search button *-/
.search-filters button.search-btn {
  border: 1px solid #000;
  background: white;
  color: #000;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.search-filters button.search-btn:hover {
  background-color: #0071c2;
  color: white;
}

/* Toggle buttons group (Buy, All, Ready, Off-Plan) *-/
.toggle-group {
  display: flex;
  gap: 8px;
}

.location {
    display: flex;
    align-items: center;
    gap: 4px; /* space between icon and text *-/
    font-size: 14px; /* match details text size *-/
    color: #000; /* make text black *-/
}

.location img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}


/* Toggle buttons style *-/
.toggle-btn {
  border: 1px solid #0071c2;
  background: white;
  color: #0071c2;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 15px;
  cursor: pointer;
  min-width: 70px;
  transition: all 0.2s ease;
}

.toggle-btn.active,
.toggle-btn:hover {
  background: #0071c2;
  color: white;
  border-color: #005ea0;
}*/

/* Main content */
.main-content {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

/* Properties List */
.properties-list {
  flex: 3;
}

.properties-list h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  color: #000;
}

.property-info .price .rate-unit {
    font-size: 14px; /* smaller size */
    color: #04a033;  /* change to your desired color */
    font-weight: 500;
}

.details {
    display: flex;
    align-items: center;
    gap: 14px; /* equal gap between each item */
    font-size: 14px;
}


.details .property-type {
    font-weight: 600;
}

.details .separator {
    color: #999;
    font-weight: bold;
}


.details .beds,
.details .baths,
.details .area {
    display: flex;
    align-items: center;
    font-size: 14px; /* same text size for all */
}


.details .detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.details .icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.details img {
    width: 18px;
    height: auto;
    vertical-align: middle;
    margin-right: 4px; /* gap between icon and number */
}


/* Property Card */
.property-card {
    display: flex;
    gap: 12px;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    background: white;
    height: 180px;
    overflow: hidden;
    margin-bottom: 16px;

    /* Add these to override anchor defaults */
    text-decoration: none;
    color: inherit;
}

.property-card:hover {
    text-decoration: none;
}

.property-card img {
    display: block;
}


.image-container {
  width: 220px;
  height: 230px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .image-container img {
  transform: scale(1.05);
}

.property-info {
  flex: 1;
  padding: 8px; /* reduced from 10px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-info .price {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 1px; /* reduced from 2px */
  
}

.property-info .title {
  font-weight: 600;
  font-size: 17px;
  color: #000;
  margin-bottom: 1px; /* reduced from 2px */
  
}

.property-info .details {
  display: flex;
  gap: 3px; /* reduced from 4px */
  font-size: 14px;
  color: #555;
  margin-bottom: 1px; /* reduced from 2px */
  
}

.property-info .details span {
  display: flex;
  align-items: center;
  gap: 2px; /* reduced from 5px */
  margin-bottom: 0;
}

.property-info .location {
  font-size: 13px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 1px; /* reduced from 4px */
  
  margin-bottom: 0;
}

.property-info .details strong {
  font-weight: 700;
  color: #222;
}

.property-info .details div {
  display: inline;
}

/* Responsive */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }

  .properties-list {
    flex: unset;
  }

  .sidebar {
    flex: unset;
    width: 100%;
  }

  .image-container {
    width: 100%;
    height: 200px;
    min-width: unset;
    border-radius: 10px 10px 0 0;
  }

  .property-card {
    flex-direction: column;
    height: auto;
  }

  .property-info {
    padding: 10px 15px;
    height: auto;
    justify-content: flex-start;
  }

}

@media (max-width: 480px) {
  .search-filters {
    flex-direction: column;
    gap: 12px;
  }

  .search-filters > * {
    min-width: 100% !important;
  }

  .filter-group {
    width: 100%;
  }

  .location-search {
    min-width: unset;
  }

  .toggle-group {
    justify-content: flex-start;
  }

  .more-filters-btn {
    justify-content: center;
  }
}


textarea {
  border-radius:20px;
  width:100%;
  min-height:130px;
  padding:5px;
  font-size:1.1em;
  background:#f5f5f4;
  border:#eeeeee;
  resize: none;
  box-shadow:0px 0px 5px #fafafa;
}

input[type="text"], input[type="email"], input[type="password"] {
  border-radius:20px;
  width:100%;
  min-height:50px;
  padding:5px;
  font-size:1.1em;
  background:#f5f5f4;
  border:#eeeeee;
  resize: none;
  box-shadow:0px 0px 5px #fafafa;
}

input[type="submit"] {
  border-radius:20px;
  width:100%;
  min-height:50px;
  padding:5px;
  font-size:1.1em;
  background:#000066;
  border:#eeeeee;
  resize: none;
  box-shadow:0px 0px 5px #fafafa;
  color:#ffffff;
}

.ceylonlistings-action-button, .ceylonlistings-action-button:hover {
  color:#ffffff !important;
  padding:7px 20px 7px 20px;
  background:#000066;
  cursor:pointer;
  border-radius:30px;
  border:none;
  font-size:1em;
  line-height:1.9em;
}

.ceylonlistings-action-button:hover {
  background:#e5eaee;
  color:#272727;
}

.woocommerce-button.button.view {
  color:#ffffff;
  padding:9px 20px 9px 20px !important;
  background:#000066;
  cursor:pointer;
  border-radius:30px;
  border:none;
  font-size:1em;
  line-height:1.9em !important;
  margin-left:10px;
  min-width:80px;
}

.woocommerce-button.button.view:hover {
  background:#e5eaee;
  color:#272727;
  border:none;
}

.button {
  color:#ffffff !important;
  padding:9px 20px 9px 20px !important;
  background:#000066 !important;
  cursor:pointer !important;
  border-radius:30px !important;
  border:none !important;
  font-size:1em !important;
  line-height:1.9em !important;
  margin-left:10px !important;
  min-width:80px !important;
}

.button:hover {
  background:#e5eaee !important;
  color:#272727 !important;
  border:none !important;
}


