/* Base Styles for All Screens */
.screen {
  align-items: flex-start;
  background-color: var(--wild-sand);
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}

.header {
  position: relative;
  width: 100%;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px 125px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.nav.scrolled {
  background-color: #575757af;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  flex-direction: column;
  padding: 0 16px 0 0;
}

.logo {
  background-image: url(../img/logo.png);
  background-position: 50% 50%;
  background-size: cover;
  height: 40px;
  width: 40px;
}

.nav-center {
  display: flex;
  justify-content: center;
  flex: 1;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-menu-container {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-menu .logo {
  display: none;
}

.nav-menu-container li:last-child,
.nav-menu-container li:nth-last-child(2) {
  display: none;
}

.menu-icon {
  display: none;
  height: 36px;
  width: 36px;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease-in-out;
}

.nav-menu li {
  margin-left: 16px;
  position: relative;
}

.nav-link,
.nav-button,
.language-button,
.login-link {
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-m);
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  padding: 8px;
}

.nav-button,
.language-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link.active {
  font-weight: 700;
}

.login-link {
  display: flex;
  align-items: center;
}

.login-link .icon {
  height: 20px;
  width: 20px;
  margin-right: 8px;
}

/* Add Service Button Styling */
.add-service-btn {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  color: #F5A623;
  border: #F5A623 2px solid;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-m, 16px);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.add-service-btn .add-icon {
  content: '+';
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: #F5A623 2px solid;
  color: #F5A623;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 14px;
  font-weight: 700;
}

.add-service-btn:hover {
  background-color: #e69520;
  color: #fff;
  border: #F5A623 2px solid;
  transition: background-color 0.3s ease;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-m);
  font-weight: 500;
  line-height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-toggle:hover {
  color: #F5A623;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff9b;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  list-style: none;
  padding: 14px 6px;
  min-width: 220px;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  color: #F5A623;
}

.dropdown-menu hr {
  display: none; /* Hide hr elements; use li borders instead */
}

.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid #CCCCCC; /* Match mobile menu divider */
}

/* Close button styling */
.close-button {
  display: none; /* Hidden in desktop view */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 36px;
  height: 36px;
}

.close-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Login Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 380px;
  height: 580px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h1 {
  text-align: left;
  font-family: var(--font-family-manrope);
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 50%;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.6);
  transition: filter 0.2s;
}

.close:hover img,
.close:focus img {
  filter: none;
}

.hr{
  border: none;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

.login-text {
  margin-top: 50px;
  font-family: var(--font-family-manrope);
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 38px; 
  margin-left: 12px;
} 

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-family-manrope);
  font-size: 16px;
  box-sizing: border-box;
}

.continue-btn {
  width: 100%;
  padding: 12px;
  background-color: #F5A623;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family-manrope);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.or-text {
  text-align: center;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  color: #666;
  margin: 10px 0;
}

.google-btn {
  width: 100%;
  padding: 12px;
  background-color: #fff;
  color: #666;
  border: 1px solid #282525;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family-manrope);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.google-btn img {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

p {
  font-family: var(--font-family-manrope);
  font-size: 12px;
  color: #666;
  margin: 0;
}

p a {
  color: #F5A623;
  text-decoration: none;
}

/* Add Service Modal */
.add-service-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 500px;
  height: 1038px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
}

.add-service-modal-content h1 {
  text-align: left;
  font-family: var(--font-family-manrope);
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #ffdd61;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

.image-upload {
    position: relative;
}

.upload-area {
    border: 2px dashed #f5c518;
    border-radius: 5px;
    padding: 8px;
    text-align: center;
    background-color: #fff9e6;
    height: 175px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    font-size: 12px;
}

.upload-icon {
    font-size: 20px;
    color: #f5c518;
    margin-bottom: 2px;
}

.add-image-btn {
    background-color: #f5c518;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.add-image-btn:hover {
    background-color: #e6b400;
}

.description-group textarea {
    height: 135px;
    resize: vertical;
    font-family: Arial, sans-serif;
}

.form-footer {
    text-align: center;
}

.update-btn {
    background-color: #ffffff;
    color: #f5c518;
    border: none;
    padding: 8px 48px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid #f5c518;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.update-btn:hover {
    background-color: #f5f5f55c;
}

.update-btn .upload-icon {
    font-size: 18px;
    margin-bottom: 0;
}

.update-btn .img {
    width: 20px;
    height: 20px;
    margin-right: 0;
    vertical-align: middle;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.full-width {
    grid-column: 1 / span 3;
}

.facilities {
    display: flex;
    gap: 10px;
}

.facilities input[type="checkbox"] {
    margin-right: 5px;
}

.facilities label {
    margin: 0;
}

.facility-select {
    position: relative;
    width: 100%;
}

.selected-option {
    width: 100%;
    padding: 8px;
    border: 2px solid #ffdd61;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 50px;
}

.selected-option-text {
    flex-grow: 1;
    color: #999;
}

.selected-option-text.active {
    display: none;
}

.expand-icon {
    width: 24px;
    height: 24px;
    background-color: #f5c518;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 14px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 2px solid #ffdd61;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 6px;
}

.options.show {
    display: block;
}

.options label {
    display: flex;
    align-items: center;
    padding: 6px;
    cursor: pointer;
    font-size: 12px;
}

.options input[type="checkbox"] {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.options input[type="checkbox"]:checked + span {
    color: #f5c518;
    font-weight: bold;
}

.selected-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px;
}

.selected-option-item {
    background-color: #fff9e6;
    border: 1px solid #f5c518;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.remove-option {
    cursor: pointer;
    color: #f5c518;
    font-weight: bold;
}

.hero {
  align-items: center;
  background-image: url(img/background.jpg);
  background-position: 50% 50%;
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 376px;
  width: 100%;
  padding: 200px 0 142px;
  position: relative;
  z-index: 1;
}

.overlay {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  width: 100%;
  max-width: 1670px;
  margin-bottom: -14px;
}

.hero-title {
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-xxxxl);
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  width: 100%;
}

/* Remove Slider-Related Styles */
.slider,
.slides,
.slide,
.slider-btn,
.slider-btn.prev,
.slider-btn.next {
  display: none;
}

/* New Hero Image Section */
.hero-image {
  position: relative;
  width: 100%;
  height: 500px;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.single-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  margin: 0;
  display: block;
}

/* Search Bar Styles */
.slider-search {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
}

.search-tabs {
    display: flex;
    gap: 0;
    position: relative;
    z-index: 2;
}

.search-tabs .tab {
    background-color: #fcfcfc;
    color: #000;
    border: none;
    padding: 18px 65px;
    font-family: var(--font-family-manrope);
    font-size: var(--font-size-m);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    z-index: 2;
    overflow: visible; /* Ensure underline is not clipped */
}

.search-tabs .tab:first-child {
    border-top-left-radius: 8px;
}

.search-tabs .tab:last-child {
    border-top-right-radius: 8px;
}

.search-tabs .tab.active {
    background-color: #F5A623;
    color: #fff;
}

.search-tab-hr {
    position: absolute;
    left: 92px;
    transform: translateX(-50%);
    bottom: -1px;
    width: 20px; /* Matches the tab's content width */
    height: 3px;
    background-color: #F5A623;
    border: none;
    margin: 0;
    pointer-events: none;
    z-index: 20;
    opacity: 0.5;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--white-2);
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

.search-input-group {
    flex: 0.5;
    display: flex;
    flex-direction: column;
}

.search-input-group label {
    font-family: var(--font-family-manrope);
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 11px 0px;
    font-family: var(--font-family-manrope);
    font-size: var(--font-size-m);
    outline: none;
    background: transparent;
}

.search-option-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: transparent;
    border-radius: 0;
    border: none;
    padding: 11px 24px;
    font-family: var(--font-family-manrope);
    font-size: var(--font-size-m);
    color: #666;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-option-btn label {
    font-family: var(--font-family-manrope);
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.search-dropdown {
    border: none;
    font-family: var(--font-family-manrope);
    font-size: var(--font-size-m);
    color: #333;
    background: transparent;
    cursor: pointer;
    width: 100%;
    appearance: none;
    padding: 5px 0;
}

.search-dropdown::after {
    content: "−";
    font-size: 24px;
    font-weight: bold;
    color: #333;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.price-input {
    border: none;
    font-family: var(--font-family-manrope);
    font-size: var(--font-size-m);
    color: #333;
    background: transparent;
    cursor: default;
    width: 100%;
    text-align: left;
}

.search-btn {
    background-color: #F5A623;
    color: var(--white-2);
    border: none;
    padding: 12px 24px;
    font-family: var(--font-family-manrope);
    font-size: var(--font-size-m);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    background-image: url('../img/search-icon.png');
    background-repeat: no-repeat;
    background-position: left 10px center;
    padding-left: 40px;
}

.search-btn:hover {
    background-color: #e69520;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 40px; /* Adjust based on search bar height to avoid overlap */
}

.content-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 50px 0;
  width: 100%;
  max-width: 1918px;
}

/* Discover Our Featured Listings Section */
.featured-listings {
  width: 100%;
  max-width: 1670px;
  padding: 0 135px;
  margin-top: 100px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
  flex-wrap: nowrap;
}

.featured-listings-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  margin: 0;
  flex-shrink: 0;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.see-all-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  flex-shrink: 0;
  margin-left: 24px;
  margin-right: 0;
  min-width: max-content;
}

.see-all-link .see-all-text {
  margin-right: 8px;
}

.see-all-link .see-all-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.see-all-link .see-all-icon img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.listings-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.listings-grid {
  display: flex;
  flex-direction: row;
  justify-content: flex-start; /* Ensure cards start from the left */
  overflow-x: auto;
  gap: 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.listings-grid::-webkit-scrollbar {
  height: 8px;
}

.listings-grid::-webkit-scrollbar-track {
  background: transparent;
}

.listing-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 0 0 330px;
  max-width: 330px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-5px);
}

.listing-image {
  position: relative;
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.hire-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #00CC66;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hire-btn:hover {
  background-color: #00B359;
}

.listing-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing-type {
  display: flex;
  align-items: center;
  color: #F5A623;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.type-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.listing-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.title-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.listing-location {
  color: #666;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.detail-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
}

.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination-dots .dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination-dots .dot.active {
  background-color: #F5A623;
}

/* Explore Service Types Section */
.explore-service-types {
  width: 100%;
  max-width: 1670px;
  padding: 0 135px;
  margin-top: 50px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.explore-service-types .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  margin-top: 20px;
  width: 100%;
  flex-wrap: nowrap;
}

.explore-service-types .explore-service-types-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  flex-grow: 1;
}

/* Style the see-all-link for explore-service-types */
.explore-service-types .see-all-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  flex-shrink: 0;
  margin-left: 24px;
  margin-right: 0;
  min-width: max-content;
}

.explore-service-types .see-all-link .see-all-text {
  margin-right: 8px;
}

.explore-service-types .see-all-link .see-all-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-service-types .see-all-link .see-all-icon img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* Ensure view-all-categories is visible on larger screens */
.explore-service-types .view-all-categories {
  display: flex;
  align-items: center;
  background-color: #F5A623;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 20px;
}

.explore-service-types .view-all-categories .magnifying-glass-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  background-size: cover;
  background-position: center;
}

.explore-service-types .view-all-categories:hover {
  background-color: #e69520;
}

/* Hide see-all-link on larger screens */
.explore-service-types .see-all-link {
  display: none;
}

.explore-service-types .listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for new layout */
  gap: 20px;
  padding: 0;
  width: 100%;
  overflow: hidden;
  margin-bottom: 50px; /* Space for pagination dots */
}

/* Large cards (first and last) placement for 4-column layout */
.explore-service-types .service-type-card:nth-child(1) {
  grid-column: 1 / 3; /* Span columns 1 and 2 */
  height: 200px;
}
.explore-service-types .service-type-card:nth-child(6) {
  grid-column: 3 / 5; /* Span columns 3 and 4 */
  height: 200px;
}

.explore-service-types .service-type-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
  height: 200px;
}

.explore-service-types .service-type-card:hover {
  transform: translateY(-5px);
}

.explore-service-types .service-type-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.explore-service-types .service-type-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.885), transparent);
}

.explore-service-types .service-type-details {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  font-family: var(--font-family-manrope);
}

.explore-service-types .service-type-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-service-types .service-type-count {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

/* Smaller cards (fill remaining columns) */
.explore-service-types .service-type-card:nth-child(2),
.explore-service-types .service-type-card:nth-child(3),
.explore-service-types .service-type-card:nth-child(4),
.explore-service-types .service-type-card:nth-child(5) {
  grid-column: auto;
  height: 200px;
}

/* Trending Services Section */
.trending-services {
  width: 100%;
  max-width: 1670px;
  padding: 0 135px;
  background-image: url('../img/background-img-1\ \(1\).png'); /* Replace with your background image path */
  background-size: cover;
  background-position: center;
  position: relative;
}

.trending-services .section-header {
  margin-top: 30px;
  margin-bottom: 40px;
}

.trending-services .trending-services-title {
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
}

.trending-services .see-all-link {
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px; /* Add spacing between text and icon */
}

.trending-services .see-all-icon {
  border-color: var(--white-2);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.trending-services .see-all-icon img {
  width: 18px;
  height: 18px;
}

.trending-services .listings-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trending-services .listings-grid {
  display: flex;
  flex-direction: row;
  justify-content: flex-start; /* Ensure cards start from the left */
  overflow-x: auto;
  gap: 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.trending-services .listings-grid::-webkit-scrollbar {
  height: 8px;
}

.trending-services .listings-grid::-webkit-scrollbar-track {
  background: transparent;
}

.trending-services .listing-card {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trending-services .listing-image {
  width: 100%;
  height: 200px;
  border-radius: 8px 8px 0 0;
  background-size: cover;
  background-position: center;
}

.trending-services .listing-details {
  width: 100%;
  padding: 16px;
  background-color: var(--white-2);
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trending-services .listing-title {
  font-size: 16px;
  margin: 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-services .title-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.trending-services .listing-location {
  font-size: 12px;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-services .location-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Pagination Dots for Trending Services */
.trending-services .pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px; /* Reduced margin to bring dots closer to the grid */
  margin-bottom: 40px; /* Adjusted bottom margin for spacing */
  width: 100%;
  align-items: center;
}

.trending-services .pagination-dots .dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.trending-services .pagination-dots .dot.active {
  background-color: #F5A623;
}

/* Remove elements not needed for trending services */
.trending-services .label-container,
.trending-services .listing-divider,
.trending-services .listing-specs,
.trending-services .listing-footer,
.trending-services .location-tag,
.trending-services .favorite-btn,
.trending-services .listing-type {
  display: none;
}

/* Discover Our Most Favourite Properties Section */
.most-favorite-properties {
  width: 100%;
  max-width: 1670px;
  padding: 0 135px; 
  margin-top: 80px;
}

.most-favorite-properties .upcoming-projects-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
}

.most-favorite-properties .listings-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding: 0 12px;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #ccc transparent; /* For Firefox */
}

.most-favorite-properties .listings-grid::-webkit-scrollbar {
  height: 8px;
}

.most-favorite-properties .listings-grid::-webkit-scrollbar-track {
  background: transparent;
}

.most-favorite-properties .listings-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.most-favorite-properties .listing-card {
  flex: 0 0 280px;
  scroll-snap-align: start; 
}

.most-favorite-properties .pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.most-favorite-properties .pagination-dots .dot {
  width: 10px;
  height: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  margin: 0 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.most-favorite-properties .pagination-dots .dot.active {
  background-color: #F5A623;
  border-color: #F5A623;
}

/* Updated Properties Nearby Cities Section */
.properties-nearby-cities {
  width: 100%;
  max-width: 1670px;
  padding: 0 135px; 
  margin-top: 100px; 
  position: relative; 
}

.properties-nearby-cities .section-header {
  margin-bottom: 40px;
}

.properties-nearby-cities .nearby-cities-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
}

.properties-nearby-cities .listings-container {
  position: relative;
}

.properties-nearby-cities .listings-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding: 0 12px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for Edge */
}

.properties-nearby-cities .listings-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari */
}

.properties-nearby-cities .city-card {
  flex: 0 0 280px; 
  scroll-snap-align: start; 
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.properties-nearby-cities .city-card:hover {
  transform: translateY(-5px);
}

.properties-nearby-cities .city-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative; /* For the overlay */
}

.properties-nearby-cities .city-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Cover only the bottom half */
  background: rgba(0, 0, 0, 0.5); 
  border-radius: 0 0 8px 8px;
}

.properties-nearby-cities .city-details {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: 8px;
  width: 90%; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.properties-nearby-cities .city-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.properties-nearby-cities .city-title {
  color: #333; 
  font-family: var(--font-family-manrope);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.properties-nearby-cities .city-properties {
  color: #666; 
  font-family: var(--font-family-manrope);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}

.properties-nearby-cities .city-arrow {
  width: 16px;
  height: 16px;
  background-image: url('../img/arrow.png'); /* Replace with your SVG icon path */
  background-size: cover;
  background-position: center;
}

.properties-nearby-cities .pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.properties-nearby-cities .pagination-dots .dot {
  width: 10px;
  height: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.properties-nearby-cities .pagination-dots .dot.active {
  background-color: #F5A623;
  border-color: #F5A623;
}

/* Our Articles Section */
.our-articles {
  width: 100%;
  max-width: 1670px;
  padding: 0 135px; 
  margin-top: 50px;
}

.our-articles .section-header {
  margin-bottom: 40px;
}

.our-articles .articles-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
}

.our-articles .listings-container {
  position: relative;
}

.our-articles .articles-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding: 0 12px;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #ccc transparent; /* For Firefox */
}

.our-articles .articles-grid::-webkit-scrollbar {
  height: 8px;
}

.our-articles .articles-grid::-webkit-scrollbar-track {
  background: transparent;
}

/* .our-articles .articles-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
} */

.our-articles .article-card {
  background-color: var(--white-2);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  flex: 0 0 280px;
  scroll-snap-align: start; 
  display: flex;
  flex-direction: column;
}

.our-articles .article-card:hover {
  transform: translateY(-5px);
}

.our-articles .article-image {
  position: relative;
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.our-articles .article-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #F5A623;
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

.our-articles .article-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.our-articles .article-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.our-articles .article-description {
  color: #666;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;
  flex-grow: 1; 
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
}

.our-articles .show-more {
  color: #666;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 12px;
}

.our-articles .show-more:hover {
  text-decoration: underline;
}

.our-articles .article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  color: #666;
}

.our-articles .article-author,
.our-articles .article-date {
  font-weight: 400;
}

/* All Properties Section */

/* Content Section Styles */
.content-section.filter-and-listings {
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  padding: 50px 125px;
}

.content-section.properties-nearby-cities-list {
  display: flex;
  flex-direction: row;
  padding: 0px 135px;
  width: 100%;
  max-width: 1918px;
}

.content-section.featured-properties-list {
  display: flex;
  flex-direction: row;
  padding: 0px 135px;
  width: 100%;
  max-width: 1918px;
}

.content-section.most-viewed-properties-list {
  display: flex;
  flex-direction: row;
  padding: 0px 135px;
  width: 100%;
  max-width: 1918px;
}

.content-section.most-favorite-properties-list {
  display: flex;
  flex-direction: row;
  padding: 0px 135px;
  width: 100%;
  max-width: 1918px;
}

/* Filter and Listings Section */
.filter-and-listings {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  background-color: #f5f5f5;
  width: 100%;
  max-width: 1918px;
}

/* Filter Sidebar Styles */
.filter-sidebar {
  width: 300px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.filter-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.clear-filter-btn {
  background: none;
  border: none;
  color: #666;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  cursor: pointer;
}

.filter-search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}

.filter-search-tabs .tab {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px 20px;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-search-tabs .tab.active {
  background-color: #F5A623;
  color: var(--white-2);
  border-color: #F5A623;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-label {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: var(--font-family-manrope);
  font-size: 14px;
}

.range-sliders {
  display: flex;
  gap: 10px;
}

.range-slider {
  flex: 1;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  margin-top: 8px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 14px;
}

.filter-search-btn {
  width: 100%;
  background-color: #F5A623;
  color: var(--white-2);
  border: none;
  padding: 12px;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.filter-search-btn:hover {
  background-color: #e69520;
}

/* Property Listings Styles */
.property-listings {
  flex: 1;
  padding: 20px;
}

.property-listings .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 20px;
}

.property-listings .most-viewed-title {
  font-family: var(--font-family-manrope);
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.property-listings .see-all-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.property-listings .see-all-dropdown{
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  margin-right: 12px;
  min-width: max-content;
}

.property-listings .see-all-dropdown .categories-dropdown {
  display: flex;
  align-items: center;
  background-color: #c6c6c6;
  color: #000000;
  border: none;
  padding: 9px 4px;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
}

.property-listings .see-all-icon {
  width: 44px;
  height: 38px;
  border: 1px solid #282828;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-listings .see-all-icon img {
  width: 40px;
  height: 40px;
}

.property-listings .listings-container {
  display: flex;
  justify-content: center;
}

.property-listings .listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 100%;
  width: 100%;
}

.listing-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-5px);
}

.listing-image {
  position: relative;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.favorite-icon {
  width: 16px;
  height: 16px;
}

.listing-details {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.listing-type {
  display: flex;
  align-items: center;
  color: #666;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.type-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.listing-title {
  font-family: var(--font-family-manrope);
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.listing-location {
  font-family: var(--font-family-manrope);
  font-size: 12px;
  color: #666;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.sell-label {
  background-color: #e6f0fa;
  color: #1e90ff;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.listing-price {
  font-family: var(--font-family-manrope);
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.load-more-button {
  width: 11%;
  background-color: #e0e0e053;
  color: #F5A623;
  border: 1px solid #F5A623;
  padding: 13px;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto; 
  margin-top: 20px;
}

.load-more-button:hover {
  background-color: rgba(224, 224, 224, 0.5);
}

/* Properties Nearby Cities List Section */
.properties-nearby-cities-list {
  width: 100%;
  max-width: 1670px;
  padding: 0 135px; 
  margin-top: 10px;
}

.properties-nearby-cities-list .city-card {
  flex: 0 0 280px;
  scroll-snap-align: start; 
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative; 
}

.properties-nearby-cities-list .city-card:hover {
  transform: translateY(-5px);
}

.properties-nearby-cities-list .city-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative; /* For the overlay */
}

.properties-nearby-cities-list .city-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Cover only the bottom half */
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 8px 8px; /* Rounded bottom corners only */
}

.properties-nearby-cities-list .city-details {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9); 
  padding: 12px 16px;
  border-radius: 8px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.properties-nearby-cities-list .city-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.properties-nearby-cities-list .city-title {
  color: #333;
  font-family: var(--font-family-manrope);
  font-size: 16px; 
  font-weight: 600;
  margin: 0 0 4px;
}

.properties-nearby-cities-list .city-properties {
  color: #666;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}

.properties-nearby-cities-list .city-arrow {
  width: 16px;
  height: 16px;
  background-image: url('../img/arrow.png'); /* Replace with your SVG icon path */
  background-size: cover;
  background-position: center;
}

/* Footer */
.footer {
  align-items: center;
  background-color: var(--charade);
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 48px 0;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  max-width: 1670px;
  padding: 0 12px;
  gap: 0;
}

.footer-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 12px;
  min-width: 300px;
}

.footer-logo .logo {
  background-image: url(../img/ebroker-logo-2@2x.png);
  background-position: 50% 50%;
  background-size: cover;
  height: 60px;
  width: 100%;
  max-width: 200px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-item .icon {
  height: 18px;
  width: 18px;
}

.contact-item .label {
  color: var(--white);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-s);
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
}

.contact-item a,
.contact-item p {
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-m);
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.social-links {
  margin-top: 39px;
}

.social-links h3 {
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-xxl);
  font-weight: 500;
  line-height: 28.8px;
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons img {
  height: 28px;
  width: 28px;
}

.footer-column h3 {
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-xxxl);
  font-weight: 600;
  line-height: 39px;
  margin-bottom: 30px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul li a {
  color: var(--white);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-m);
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.footer-column p {
  color: var(--white);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-s);
  font-weight: 400;
  line-height: 21px;
  margin-top: 0;
}

.app-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.app-links a {
  background-position: 50% 50%;
  background-size: cover;
  height: 78px;
  width: 100%;
}

.app-links a:first-child {
  background-image: url(../img/no-img-6@2x.png);
}

.app-links a:last-child {
  background-image: url(../img/no-img-7@2x.png);
}

.footer-bottom {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1670px;
  padding: 0 12px;
}

.separator {
  border-color: var(--white-2);
  border-top-style: solid;
  border-top-width: 1px;
  height: 1px;
  opacity: 0.25;
  width: 100%;
  margin: 16px 0;
}

.footer-bottom p {
  color: var(--white-2);
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-m);
  font-weight: 500;
  line-height: 19.2px;
  text-align: center;
  padding: 19px 20px 28px;
}

/* Responsive Design */
/* 1440px and below */
@media screen and (max-width: 1440px) {
  .explore-service-types {
    max-width: 1440px;
    padding: 0 24px;
  }

  .explore-service-types .listings-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
  }

  .explore-service-types .service-type-card:nth-child(1) {
    grid-column: 1 / 2; /* Single column for large card */
  }
  .explore-service-types .service-type-card:nth-child(6) {
    grid-column: 3 / 4; /* Single column for large card */
  }
}

@media screen and (max-width: 1024px) {
  .explore-service-types {
    max-width: 960px;
    padding: 0 20px;
  }

  .explore-service-types .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .explore-service-types .explore-service-types-title {
    font-size: 24px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-left: 16px !important;
    max-width: 75% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .explore-service-types .view-all-categories {
    display: none !important; /* Hide the view-all-categories button */
  }

  .explore-service-types .see-all-link {
    display: flex !important;
    margin-left: 16px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    min-width: 24px !important;
  }

  .explore-service-types .see-all-link .see-all-text {
    display: none !important; /* Hide the text */
  }

  .explore-service-types .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .explore-service-types .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .explore-service-types .listings-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet screens */
    gap: 15px;
  }

  .explore-service-types .service-type-card:nth-child(1),
  .explore-service-types .service-type-card:nth-child(6) {
    grid-column: auto; /* Single column for all cards */
  }

  .explore-service-types .service-type-title {
    font-size: 16px;
  }

  .explore-service-types .service-type-count {
    font-size: 12px;
  }

  .filter-and-listings {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .property-listings {
    width: 100%;
  }

  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .load-more-button {
    width: 180px;
    padding: 10px;
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  .explore-service-types {
    max-width: 100%;
    padding: 0 16px;
  }

  .explore-service-types .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .explore-service-types .explore-service-types-title {
    font-size: 20px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-right: 12px !important;
    max-width: 75% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .explore-service-types .view-all-categories {
    display: none !important; /* Ensure the button remains hidden */
  }

  .explore-service-types .see-all-link {
    margin-left: 12px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important;
  }

  .explore-service-types .see-all-link .see-all-text {
    display: none !important;
  }

  .explore-service-types .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .explore-service-types .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .explore-service-types .listings-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }

  .explore-service-types .service-type-image {
    height: 180px; /* Slightly reduced height for mobile */
  }

  .explore-service-types .service-type-title {
    font-size: 14px;
  }

  .explore-service-types .service-type-count {
    font-size: 11px;
  }

  .filter-and-listings {
    padding: 10px;
  }

  .filter-sidebar {
    padding: 15px;
  }

  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .listing-card {
    border-radius: 6px;
  }

  .listing-image {
    height: 120px;
  }

  .listing-title {
    font-size: 14px;
  }

  .listing-location {
    font-size: 11px;
  }

  .listing-price {
    font-size: 14px;
  }

  .load-more-button {
    width: 160px;
    padding: 8px;
    font-size: 12px;
  }
}

@media screen and (max-width: 375px) {
  .explore-service-types {
    padding: 0 12px;
  }

  .explore-service-types .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .explore-service-types .explore-service-types-title {
    font-size: 18px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-right: 8px !important;
    max-width: 75% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .explore-service-types .view-all-categories {
    display: none !important; /* Ensure the button remains hidden */
  }

  .explore-service-types .see-all-link {
    margin-left: 8px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important;
  }

  .explore-service-types .see-all-link .see-all-text {
    display: none !important;
  }

  .explore-service-types .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .explore-service-types .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .explore-service-types .listings-grid {
    gap: 10px;
  }

  .explore-service-types .service-type-image {
    height: 150px; /* Further reduced height for smallest screens */
  }

  .explore-service-types .service-type-title {
    font-size: 12px;
  }

  .explore-service-types .service-type-count {
    font-size: 10px;
  }
  
  .filter-sidebar {
    padding: 10px;
  }

  .filter-title {
    font-size: 16px;
  }

  .clear-filter-btn {
    font-size: 12px;
  }

  .filter-label,
  .filter-select,
  .filter-input,
  .radio-label,
  .search-btn {
    font-size: 12px;
  }

  .listings-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .listing-image {
    height: 100px;
  }

  .listing-details {
    padding: 8px;
  }

  .listing-title {
    font-size: 13px;
  }

  .listing-location {
    font-size: 10px;
  }

  .listing-price {
    font-size: 13px;
  }

  .sell-label {
    font-size: 10px;
    padding: 1px 4px;
  }

  .load-more-button {
    width: 140px;
    padding: 6px;
    font-size: 11px;
  }
}

/* Media Queries for Responsiveness */

/* 1440px and below */
@media screen and (max-width: 1440px) {
  .nav {
    padding: 0 32px;
  }


  .hero {
    background-image: url(../img/background.jpg);
    height: 450px;
  }

  .overlay {
    max-width: 1440px;
  }

  .slider {
    height: 450px;
  }

  .slider-search {
    max-width: 800px;
    bottom: -44px; 
  }

  .content-section {
    max-width: 1440px;
  }

  .featured-listings {
    max-width: 1440px;
    padding: 0 24px;
  }

  .listings-grid {
    gap: 24px;
    padding: 0 10px;
  }

  .listing-card {
    flex: 0 0 260px;
  }

  .explore-apartment-types {
    max-width: 1440px;
    padding: 0 24px;
  }

  .explore-apartment-types .apartment-type-card {
    flex: 0 0 260px;
  }

  .trending-services {
    max-width: 1440px;
    padding: 0 24px;
  }

  .trending-services .listing-card {
    flex: 0 0 260px;
  }

  .trending-services .listing-image {
    height: 180px;
  }

  .trending-services .listing-title {
    font-size: 15px;
  }

  .trending-services .title-icon {
    width: 15px;
    height: 15px;
  }

  .trending-services .listing-location {
    font-size: 11px;
  }

  .trending-services .location-icon {
    width: 13px;
    height: 13px;
  }

  .trending-services .pagination-dots {
    margin-bottom: 30px;
  }

  .properties-nearby-cities,
  .our-articles {
    max-width: 1440px;
    padding: 0 24px;
  }

  .properties-nearby-cities .city-card,
  .our-articles .article-card {
    flex: 0 0 260px;
  }

  .properties-nearby-cities .city-details {
    width: 92%; 
  }

  .content-section.filter-and-listings {
    padding: 50px 24px;
  }

  .content-section.properties-nearby-cities-list,
  .content-section.featured-properties-list,
  .content-section.most-viewed-properties-list,
  .content-section.most-favorite-properties-list {
    padding: 0 24px;
    max-width: 1440px;
  }

  .filter-and-listings {
    max-width: 1440px;
    padding: 15px;
  }

  .filter-sidebar {
    width: 280px;
  }

  .property-listings {
    padding: 15px;
  }

  .property-listings .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }

  .properties-nearby-cities-list {
    max-width: 1440px;
    padding: 0 24px;
  }

  .properties-nearby-cities-list .city-card {
    flex: 0 0 260px;
  }

  .properties-nearby-cities-list .city-details {
    width: 92%;
  }

  .load-more-button {
    width: 180px;
    padding: 10px;
    font-size: 13px;
  }

  .footer-columns {
    max-width: 1440px;
  }

  .footer-bottom {
    max-width: 1440px;
  }
}

/* 1024px and below */
@media screen and (max-width: 1024px) {
  .nav {
    padding: 0 32px;
  }

  .add-service-btn {
    padding: 6px 10px;
    font-size: 14px;
  }

  .add-service-btn .add-icon {
    width: 16px;
    height: 16px;
    font-size: 12px;
  }

  .hero {
    background-image: url(../img/background.jpg);
    height: 386px;
  }

  .overlay {
    max-width: 960px;
    margin-bottom: -4px;
  }

  .slider {
    height: 400px;
  }

  .slider-search {
    max-width: 700px;
    bottom: -60px; /* Adjust for smaller screens */
  }

  .content-section {
    max-width: 960px;
  }

  .featured-listings {
    max-width: 960px;
    padding: 0 20px;
    overflow-x: hidden;
  }

  .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .featured-listings-title {
    font-size: 24px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-right: 16px !important;
    max-width: 75% !important; /* Ensure space for icon */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .see-all-link {
    margin-left: 16px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important;
  }

  .see-all-link .see-all-text {
    display: none !important;
  }

  .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .listings-container {
    width: 100%;
    overflow-x: hidden;
  }

  .listings-grid {
    gap: 20px;
    padding: 0 8px;
    scroll-behavior: smooth;
    width: 100%;
    box-sizing: border-box;
  }

  .listing-card {
    flex: 0 0 240px; 
  }

  .explore-apartment-types {
    max-width: 960px;
    padding: 0 20px;
  }

  .explore-apartment-types .apartment-type-card {
    flex: 0 0 240px;
  }

  .trending-services {
    max-width: 960px;
    padding: 0 20px;
  }

  .trending-services .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .trending-services .trending-services-title {
    font-size: 24px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-right: 16px !important;
    max-width: 75% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .trending-services .see-all-link {
    margin-left: 16px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important;
  }

  .trending-services .see-all-link .see-all-text {
    display: none !important;
  }

  .trending-services .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .trending-services .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .trending-services .listing-card {
    flex: 0 0 240px;
  }

  .trending-services .listing-image {
    height: 160px;
  }

  .trending-services .listing-title {
    font-size: 14px;
  }

  .trending-services .title-icon {
    width: 14px;
    height: 14px;
  }

  .trending-services .listing-location {
    font-size: 10px;
  }

  .trending-services .location-icon {
    width: 12px;
    height: 12px;
  }

  .trending-services .pagination-dots {
    margin-bottom: 20px;
  }

  .properties-nearby-cities,
  .our-articles {
    max-width: 960px;
    padding: 0 20px;
  }

  .properties-nearby-cities .city-card,
  .our-articles .article-card {
    flex: 0 0 240px; 
  }

  .properties-nearby-cities .city-details {
    width: 92%; 
  }

  .content-section.filter-and-listings {
    flex-direction: column;
    padding: 40px 20px;
  }

  .content-section.properties-nearby-cities-list,
  .content-section.featured-properties-list,
  .content-section.most-viewed-properties-list,
  .content-section.most-favorite-properties-list {
    padding: 0 20px;
    max-width: 960px;
  }

  .filter-and-listings {
    flex-direction: column;
    max-width: 960px;
    padding: 10px;
  }

  .filter-sidebar {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .property-listings {
    padding: 10px;
  }

  .property-listings .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
  }

  .properties-nearby-cities-list {
    max-width: 960px;
    padding: 0 20px;
  }

  .properties-nearby-cities-list .city-card {
    flex: 0 0 240px;
  }

  .properties-nearby-cities-list .city-details {
    width: 92%;
  }

  .load-more-button {
    width: 180px;
    padding: 10px;
    font-size: 13px;
  }

  .footer-columns {
    max-width: 960px;
  }

  .footer-bottom {
    max-width: 960px;
  }
}

/* 768px and below */
@media screen and (max-width: 768px) {
  .nav {
    padding: 0 24px;
  }

  .nav-links-buttons {
    display: none;
  }

  .nav-logo .logo-link {
    order: 1;
  }

  .logo {
    height: 50px;
    width: 50px;
  }

  .menu-icon {
    display: block;
    order: 2;
    height: 36px;
    width: 36px;
    cursor: pointer;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    color: #333333;
  }

  .nav-menu.active {
    display: flex;
    left: 0;
  }

  .nav-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }

  .nav-menu-header .logo {
    display: block;
    height: 80px;
    width: 80px;
    margin-bottom: 10px;
  }

  .close-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
  }

  .close-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0);
  }

  .nav-menu li {
    margin: 16px 0;
    width: 100%;
    border-bottom: 1px solid #CCCCCC;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu-container li:last-child,
  .nav-menu-container li:nth-last-child(2) {
    display: block;
  }

  /* Show nav-right items in mobile menu */
  .nav-menu .language-button,
  .nav-menu .login-link {
    display: flex !important;
  }

  .nav-link,
  .nav-button,
  .language-button,
  .login-link {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    padding: 10px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333333;
  }

  /* Disable hover dropdown on mobile */
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  /* Show dropdown when parent has .active */
  .dropdown.active .dropdown-menu {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    position: static;
    background-color: #FFFFFF;
    box-shadow: none;
    margin-top: 10px;
    margin-left: 20px;
    width: calc(100% - 20px);
    padding: 0;
    border-radius: 0;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    padding: 10px;
    display: flex;
    gap: 8px;
    color: #333333;
  }

  .dropdown-icon {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
  }

  .dropdown-icon path {
    stroke: #333333 !important; /* Ensure visibility against white background */
  }

  .dropdown.active .dropdown-icon {
    transform: rotate(180deg);
  }

  .dropdown-item {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    background-color: #FFFFFF;
    display: block;
    text-decoration: none;
    color: #333333;
  }

  .dropdown-item:hover {
    background-color: #E0E0E0;
  }

  .dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #CCCCCC; /* Consistent with nav-menu li */
  }

  .dropdown-menu hr {
    display: none; /* Ensure hr is hidden */
  }

  .login-link .icon {
    height: 20px;
    width: 20px;
    filter: brightness(0);
  }

  /* Login Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }

  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 340px;
    height: 580px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
  }

  .modal-content h1 {
    text-align: left;
    font-family: var(--font-family-manrope);
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
  }

  .close {
    position: absolute;
    right: 15px;
    top: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.2s;
  }

  .close:hover img,
  .close:focus img {
    filter: none;
  }

  .hr{
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
  }

  .login-text {
    margin-top: 50px;
    font-family: var(--font-family-manrope);
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 38px; 
    margin-left: 12px;
  } 

  .form-group {
    margin-bottom: 20px;
    text-align: left;
  }

  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-family-manrope);
    font-size: 14px;
    color: #333;
  }

  .form-group input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family-manrope);
    font-size: 16px;
    box-sizing: border-box;
  }

  .continue-btn {
    width: 100%;
    padding: 12px;
    background-color: #F5A623;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-family-manrope);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
  }

  .or-text {
    text-align: center;
    font-family: var(--font-family-manrope);
    font-size: 14px;
    color: #666;
    margin: 10px 0;
  }

  .google-btn {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    color: #666;
    border: 1px solid #282525;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-family-manrope);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
  }

  .google-btn img {
    margin-right: 10px;
    width: 18px;
    height: 18px;
  }

  p {
    font-family: var(--font-family-manrope);
    font-size: 12px;
    color: #666;
    margin: 0;
  }

  p a {
    color: #F5A623;
    text-decoration: none;
  }

  /* Add Property Modal */
  .add-service-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 12px;
    border-radius: 8px;
    width: 98vw;
    max-width: 360px;
    height: auto;
    min-height: 520px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto;
  }

  .add-service-modal-content h1 {
    text-align: left;
    font-family: var(--font-family-manrope);
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
  }

  .form-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  .form-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ffdd61;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 13px;
  }

  .image-upload {
    position: relative;
  }

  .upload-area {
    border: 2px dashed #f5c518;
    border-radius: 5px;
    padding: 6px;
    text-align: center;
    background-color: #fff9e6;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    font-size: 11px;
  }

  .upload-icon {
    font-size: 18px;
    color: #f5c518;
    margin-bottom: 2px;
  }

  .add-image-btn {
    background-color: #f5c518;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
  }

  .add-image-btn:hover {
    background-color: #e6b400;
  }

  .description-group textarea {
    height: 80px;
    resize: vertical;
    font-family: Arial, sans-serif;
    font-size: 13px;
  }

  .form-footer {
    text-align: center;
    margin-top: 10px;
  }

  .update-btn {
    background-color: #ffffff;
    color: #f5c518;
    border: none;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid #f5c518;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .update-btn:hover {
    background-color: #f5f5f55c;
  }

  .update-btn .upload-icon {
    font-size: 16px;
    margin-bottom: 0;
  }

  .update-btn .img {
    width: 18px;
    height: 18px;
    margin-right: 0;
    vertical-align: middle;
  }

  .two-column-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .full-width {
    width: 100%;
  }

  .facilities {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .facilities input[type="checkbox"] {
    margin-right: 4px;
  }

  .facilities label {
    margin: 0;
    font-size: 12px;
  }

  .facility-select {
    position: relative;
    width: 100%;
  }

  .selected-option {
    width: 100%;
    padding: 7px;
    border: 2px solid #ffdd61;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 13px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 40px;
  }

  .selected-option-text {
    flex-grow: 1;
    color: #999;
    font-size: 12px;
  }

  .selected-option-text.active {
    display: none;
  }

  .expand-icon {
    width: 20px;
    height: 20px;
    background-color: #f5c518;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 13px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }

  .options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 2px solid #ffdd61;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 4px;
    font-size: 12px;
  }

  .options.show {
    display: block;
  }

  .options label {
    display: flex;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    font-size: 12px;
  }

  .options input[type="checkbox"] {
    margin-left: 6px;
    width: 14px;
    height: 14px;
    cursor: pointer;
  }

  .options input[type="checkbox"]:checked + span {
    color: #f5c518;
    font-weight: bold;
  }

  .selected-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px;
  }

  .selected-option-item {
    background-color: #fff9e6;
    border: 1px solid #f5c518;
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .remove-option {
    cursor: pointer;
    color: #f5c518;
    font-weight: bold;
    font-size: 12px;
  }

  .hero {
    height: 350px;
  }

  .slider {
    height: 350px;
  }

  .search-tabs {
      margin-left: 13px;
  }

  .search-bar {
      grid-template-columns: 1fr; /* Stack vertically as base */
      gap: 8px;
      display: grid;
      grid-template-areas:
          "input1 input2"
          "input3 input4"
          "button button";
      width: 94%; /* Reduced width for spacing */
      margin: 0 auto; /* Center the search bar with equal margins */
  }

  .search-input-group {
      grid-area: input1;
      width: 100%;
  }

  .search-option-btn:nth-child(2) {
      grid-area: input2;
      width: 100%;
  }

  .search-option-btn:nth-child(3) {
      grid-area: input3;
      width: 100%;
  }

  .search-option-btn:nth-child(4) {
      grid-area: input4;
      width: 100%;
  }

  .search-btn {
      grid-area: button;
      width: 100%;
      grid-column: 1 / -1; /* Span full column */
  }

  .search-input,
  .search-dropdown,
  .price-input {
      width: 100%;
      margin: 0;
      padding: 10px;
      height: 40px !important;
      line-height: 1 !important;
      box-sizing: border-box !important;
  }

  .search-dropdown {
      appearance: none !important;
      background-color: #fff;
  }

  .main-content {
    margin-top: 25px; /* Increase to accommodate stacked search bar */
  }

  .content-section {
    max-width: 100%;
    padding: 20px 0;
  }

  .featured-listings {
    max-width: 100%;
    padding: 0 16px;
    overflow-x: hidden;
  }

  .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .featured-listings-title {
    font-size: 20px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-right: 12px !important;
    max-width: 75% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .see-all-link {
    margin-left: 12px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important;
  }

  .see-all-link .see-all-text {
    display: none !important;
  }

  .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .listings-container {
    width: 100%;
    overflow-x: hidden;
  }

  .listings-grid {
    gap: 16px;
    padding: 0 16px;
    scroll-behavior: smooth;
    width: 100%;
    box-sizing: border-box;
  }

  .listing-card {
    flex: 0 0 300px;
  }

  .explore-apartment-types {
    max-width: 100%;
    padding: 12px 16px;
  }

  .explore-apartment-types-title {
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
  }

  .explore-apartment-types .apartment-type-card {
    flex: 0 0 300px;
  }

  .explore-apartment-types .apartment-type-image {
    height: 200px;
  }

  .explore-apartment-types .apartment-type-details {
    padding: 12px;
  }

  .explore-apartment-types .apartment-type-title {
    font-size: 16px;
  }

  .explore-apartment-types .apartment-type-count {
    font-size: 12px;
  }

  .explore-apartment-types .pagination-dots .dot {
    width: 8px;
    height: 8px;
  }

  .trending-services {
    max-width: 100%;
    padding: 0 16px;
  }

  .trending-services .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .trending-services .trending-services-title {
    font-size: 20px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-right: 12px !important;
    max-width: 75% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .trending-services .see-all-link {
    margin-left: 12px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important;
  }

  .trending-services .see-all-link .see-all-text {
    display: none !important;
  }

  .trending-services .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .trending-services .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .trending-services .listing-card {
    flex: 0 0 300px;
  }

  .trending-services .listing-image {
    height: 180px;
  }

  .trending-services .listing-title {
    font-size: 14px;
  }

  .trending-services .title-icon {
    width: 14px;
    height: 14px;
  }

  .trending-services .listing-location {
    font-size: 11px;
  }

  .trending-services .location-icon {
    width: 12px;
    height: 12px;
  }

  .trending-services .pagination-dots {
    margin-bottom: 15px;
  }

  .trending-services .pagination-dots .dot {
    width: 10px;
    height: 10px;
  }

  .properties-nearby-cities,
  .our-articles {
    max-width: 100%;
    padding: 0 16px;
  }

  .upcoming-projects-title,
  .nearby-cities-title,
  .articles-title {
    font-size: 24px;
  }

  .properties-nearby-cities .city-card,
  .our-articles .article-card {
    flex: 0 0 300px; /* Wider cards on mobile for better readability */
  }

  .properties-nearby-cities .city-title,
  .our-articles .article-title {
    font-size: 14px;
  }

  .properties-nearby-cities .city-properties,
  .our-articles .article-description {
    font-size: 10px;
  }

  .properties-nearby-cities .city-details {
    width: 90%; /* Adjust for mobile */
  }

  .our-articles .article-description {
    -webkit-line-clamp: 1; /* Limit to 1 line on smaller screens */
  }

  .our-articles .show-more,
  .our-articles .article-meta {
    font-size: 12px;
  }

  .secondary-slider .slider-dots .dot {
    width: 8px;
    height: 8px;
  }

  .content-section.filter-and-listings {
    padding: 30px 16px;
  }

  .content-section.properties-nearby-cities-list,
  .content-section.featured-properties-list {
    padding: 0 16px;
    max-width: 100%;
  }

  .filter-and-listings {
    padding: 10px;
  }

  .filter-sidebar {
    padding: 15px;
  }

  .filter-title {
    font-size: 16px;
  }

  .clear-filter-btn {
    font-size: 12px;
  }

  .filter-search-tabs .tab {
    padding: 8px 15px;
    font-size: 13px;
  }

  .filter-label,
  .filter-select,
  .filter-input,
  .radio-label,
  .filter-search-btn {
    font-size: 13px;
  }

  .property-listings {
    padding: 10px;
  }

  .property-listings .most-viewed-title {
    font-size: 16px;
  }

  .property-listings .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .listing-card {
    border-radius: 6px;
  }

  .listing-image {
    height: 120px;
  }

  .listing-title {
    font-size: 14px;
  }

  .listing-location {
    font-size: 11px;
  }

  .listing-price {
    font-size: 14px;
  }

  .sell-label {
    font-size: 10px;
  }

  .properties-nearby-cities-list {
    padding: 0 16px;
  }

  .properties-nearby-cities-list .city-card {
    flex: 0 0 300px;
  }

  .properties-nearby-cities-list .city-title {
    font-size: 14px;
  }

  .properties-nearby-cities-list .city-properties {
    font-size: 10px;
  }

  .properties-nearby-cities-list .city-details {
    width: 90%;
  }

  .load-more-button {
    width: 160px;
    padding: 8px;
    font-size: 12px;
  }

  .footer-columns {
    max-width: 720px;
  }

  .footer-bottom {
    max-width: 720px;
  }

  .social-links h3 {
    font-size: 22.7px;
    line-height: 27.2px;
  }
}

/* 375px and below */
@media screen and (max-width: 375px) {
  .nav {
    padding: 0 12px;
  }

  .nav-menu {
    top: 76px;
    left: 0;
    right: 0;
    width: 100vw;
    padding: 12px 16px;
  }

  .hero {
    background-image: url(../img/background.jpg);
    height: auto;
    padding: 168px 0;
  }

  .overlay {
    max-width: 100%;
  }

  .hero-title {
    font-size: var(--font-size-l);
    line-height: 21.6px;
  }

  .slider {
    height: 300px;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
    right: 5px;
  }

  .slider-btn.prev {
    top: calc(50% - 40px);
  }

  .slider-btn.next {
    top: calc(50% + 8px);
  }

  .slider-search {
    bottom: -100px;
  }

  .search-input,
  .search-dropdown,
  .price-input {
    padding: 8px;
    font-size: var(--font-size-xs);
  }

  .search-btn {
    padding: 8px 16px;
  }

  .main-content {
    margin-top: 140px;
  }

  .content-section {
    width: 100%;
    padding: 50px 12px;
  }

  .featured-listings {
    max-width: 100%;
    padding: 0 12px;
    overflow-x: hidden;
  }

  .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important; /* Ensure even distribution */
  }

  .featured-listings-title {
    font-size: 18px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-right: 8px !important;
    max-width: 75% !important; /* Reduced to ensure icon fits */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important; /* Additional wrapping support */
  }

  .see-all-link {
    margin-left: 8px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important; /* Ensure minimum space for icon */
  }

  .see-all-link .see-all-text {
    display: none !important;
  }

  .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .listings-container {
    width: 100%;
    overflow-x: hidden;
  }

  .listings-grid {
    gap: 12px;
    padding: 0 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    width: 100%;
    box-sizing: border-box;
  }

  .listing-card {
    flex: 0 0 280px;
  }

  .trending-services {
    padding: 0 12px;
  }

  .trending-services .section-header {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
  }

  .trending-services .trending-services-title {
    font-size: 18px !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-right: 8px !important;
    max-width: 75% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
  }

  .trending-services .see-all-link {
    margin-left: 8px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 24px !important;
  }

  .trending-services .see-all-link .see-all-text {
    display: none !important;
  }

  .trending-services .see-all-link .see-all-icon {
    margin-right: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .trending-services .see-all-link .see-all-icon img {
    width: 12px !important;
    height: 12px !important;
    object-fit: contain !important;
  }

  .trending-services .listing-card {
    flex: 0 0 280px;
  }

  .trending-services .listing-image {
    height: 150px;
  }

  .trending-services .listing-title {
    font-size: 13px;
  }

  .trending-services .title-icon {
    width: 13px;
    height: 13px;
  }

  .trending-services .listing-location {
    font-size: 10px;
  }

  .trending-services .location-icon {
    width: 11px;
    height: 11px;
  }

  .trending-services .pagination-dots {
    margin-bottom: 10px;
  }

  .trending-services .pagination-dots .dot {
    width: 8px;
    height: 8px;
  }

  .properties-nearby-cities .city-card,
  .our-articles .article-card {
    flex: 0 0 280px; 
  }

  .properties-nearby-cities .city-title,
  .our-articles .article-title {
    font-size: 12px;
  }

  .properties-nearby-cities .city-properties,
  .our-articles .article-description {
    font-size: 10px;
  }

  .properties-nearby-cities .city-details {
    width: 90%; 
  }

  .our-articles .article-description {
    -webkit-line-clamp: 1; /* Limit to 1 line on smaller screens */
  }

  .our-articles .show-more,
  .our-articles .article-meta {
    font-size: 10px;
  }

  .content-section.filter-and-listings {
    padding: 20px 12px;
  }

  .content-section.properties-nearby-cities-list,
  .content-section.featured-properties-list {
    padding: 0 12px;
    max-width: 100%;
  }

  .filter-and-listings {
    padding: 8px;
  }

  .filter-sidebar {
    padding: 10px;
  }

  .filter-title {
    font-size: 14px;
  }

  .clear-filter-btn {
    font-size: 11px;
  }

  .filter-search-tabs .tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  .filter-label,
  .filter-select,
  .filter-input,
  .radio-label,
  .filter-search-btn {
    font-size: 12px;
  }

  .property-listings {
    padding: 8px;
  }

  .property-listings .most-viewed-title {
    font-size: 14px;
  }

  .property-listings .listings-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .listing-card {
    border-radius: 6px;
  }

  .listing-image {
    height: 100px;
  }

  .listing-details {
    padding: 8px;
  }

  .listing-title {
    font-size: 13px;
  }

  .listing-location {
    font-size: 10px;
  }

  .listing-price {
    font-size: 13px;
  }

  .sell-label {
    font-size: 9px;
    padding: 1px 4px;
  }

  .properties-nearby-cities-list {
    padding: 0 12px;
  }

  .properties-nearby-cities-list .city-card {
    flex: 0 0 280px;
  }

  .properties-nearby-cities-list .city-title {
    font-size: 12px;
  }

  .properties-nearby-cities-list .city-properties {
    font-size: 10px;
  }

  .properties-nearby-cities-list .city-details {
    width: 90%;
  }

  .footer-columns {
    max-width: 100%;
  }

  .footer-column {
    padding: 0 12px;
    min-width: 100%;
  }

  .social-links h3 {
    font-size: var(--font-size-xl);
    line-height: 25.9px;
  }

  .footer-bottom {
    max-width: 100%;
  }

  .footer-bottom p {
    padding: 19.09px 20px 28px;
  }
}