/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #ff385c;
  --primary-hover: #e61e4d;
  --primary-dark: #d70466;
  --text: #222222;
  --text-light: #717171;
  --text-muted: #b0b0b0;
  --bg: #ffffff;
  --bg-secondary: #f7f7f7;
  --border: #ebebeb;
  --border-hover: #dddddd;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.container {
  flex: 1;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  max-width: 1760px;
  margin: 0 auto;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-brand {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 32px;
}

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: var(--transition);
}

.navbar-toggler:hover {
  background: var(--bg-secondary);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.navbar-collapse {
  flex-grow: 0;
}

.nav-link {
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px !important;
  border-radius: 22px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg-secondary);
  color: var(--text) !important;
}

.nav-link.home {
  color: var(--primary) !important;
}

.create-list {
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}

.create-list:hover {
  background: var(--bg-secondary);
}

/* Dropdown */
.dropdown {
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 21px;
  height: 42px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: var(--bg);
  position: relative;
}

.dropdown:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.btn.dropdown-toggle {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.btn.dropdown-toggle::after {
  display: none;
}

.dropdown-toggle i {
  font-size: 16px;
  color: var(--text);
}

.dropdown-toggle i.d-lg-none {
  margin-right: 0;
}

.dropdown-toggle svg {
  width: 30px;
  height: 30px;
  fill: var(--text);
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  margin-top: 8px;
  min-width: 240px;
  z-index: 1050;
  background-color: var(--bg);
}

.dropdown-item {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-secondary);
}

.dropdown-item i {
  width: 20px;
  margin-right: 12px;
}

.dropdown-item-text {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-light);
}

.dropdown-item-text strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-top: 4px;
}

/* Search */
.search-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  max-width: 500px;
  width: 100%;
}

.search-box:hover,
.search-box:focus-within {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.search-input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.search-btn {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
  color: white;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 80px;
}

.f-info {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg);
}

.f-info-socials,
.f-info-links,
.f-info-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.f-info-socials i {
  font-size: 18px;
  margin: 0 16px;
  color: var(--text);
  transition: var(--transition);
}

.social-link:hover i {
  color: var(--primary);
  transform: translateY(-2px);
}

.f-info-links {
  gap: 32px;
}

.f-info-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.f-info-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.f-info-brand {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
}

/* ===== LISTING CARDS ===== */
.listing-card {
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.listing-card:hover {
  transform: none;
}

.listing-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.listing-card:hover .card-img-top {
  transform: scale(1.04);
}

.card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0;
  transition: var(--transition);
}

.card-body {
  padding: 16px 0 0 0 !important;
}

.card-title-wrapper {
  margin-bottom: 8px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  font-size: 15px;
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

.card-owner {
  font-size: 14px;
  color: var(--text-light);
  margin: 6px 0 0 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-owner i {
  font-size: 12px;
  color: var(--primary);
}

.card-price-wrapper {
  display: flex;
  align-items: baseline;
  margin-top: 8px;
  gap: 4px;
}

.card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.card-price-unit {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}

.tax-info {
  display: none;
  font-size: 14px;
  color: var(--text-light);
}

/* ===== FILTERS ===== */
.choose {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

#filterList {
  position: relative;
  flex: 1;
  overflow: hidden;
}

#filters {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}

#filters::-webkit-scrollbar {
  display: none;
}

.filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  min-width: fit-content;
}

.filter:hover {
  border-bottom-color: var(--border);
}

.filter-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-icon i {
  font-size: 18px;
  color: var(--text-light);
  transition: var(--transition);
}

.filter:hover .filter-icon i {
  color: var(--text);
}

.filter p {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
  transition: var(--transition);
}

.filter:hover p {
  color: var(--text);
}

#filterList .icon {
  position: absolute;
  top: 0;
  height: 100%;
  width: 60px;
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.icon:first-child {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
  display: none;
}

.icon:last-child {
  right: 0;
  justify-content: flex-end;
  background: linear-gradient(to left, var(--bg), transparent);
}

.icon i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  box-shadow: var(--shadow);
  transition: var(--transition);
  font-size: 12px;
  color: var(--text);
}

.icon i:hover {
  background: var(--bg);
  box-shadow: var(--shadow-hover);
  transform: scale(1.1);
}

.another {
  display: flex;
  align-items: center;
  gap: 16px;
}

#filterby {
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}

#filterby:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.filter-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.tax-toggle {
  height: 48px;
  padding: 0 55px 0px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  box-sizing: border-box;
}

.tax-toggle:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.tax-toggle .form-check-reverse {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  gap: 12px;
}

.tax-toggle label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.form-switch.form-check-reverse {
  padding-right: 0;
  margin: 0;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.tax-toggle .form-check-input {
  width: 44px;
  height: 24px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.form-switch .form-check-input {
  width: 44px;
  height: 24px;
  cursor: pointer;
}

/* ===== SHOW PAGE ===== */
.listing-show-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.listing-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.listing-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-light);
}

.listing-meta i {
  color: var(--text-light);
}

.listing-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
}

.listing-owner i {
  color: var(--primary);
  font-size: 13px;
}

.show-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.show-img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.booking-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.price-section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.price-large {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.price-unit {
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
  margin-left: 4px;
}

.description-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
}

.listing-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  margin: 0;
}

.map-section {
  margin-bottom: 48px;
}

.map-container {
  height: 450px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Reviews */
.reviews-container {
  margin-top: 24px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 18px;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}

.review-comment {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.review-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}

/* ===== FORMS ===== */
.form-page-wrapper {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 0;
  margin: 0;
}

.container .form-page-wrapper {
  margin: 0 -40px;
  width: calc(100% + 80px);
}

.form-container {
  width: 100%;
  max-width: 100%;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.form-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.form-header p {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-control,
.form-control-lg {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--bg);
}

.form-control:focus,
.form-control-lg:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.current-image-container {
  margin-bottom: 24px;
}

.current-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.input-group-text {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  transition: var(--transition);
  border: none;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.add-btn,
.edit-btn {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
}

.add-btn:hover,
.edit-btn:hover {
  background: var(--primary-hover) !important;
  transform: none;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: none;
  box-shadow: var(--shadow);
}

.btn-outline-danger {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline-danger:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* ===== AUTH PAGES ===== */
.auth-page-wrapper {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 0;
  margin: 0;
}

/* Override container for auth pages */
.container .auth-page-wrapper {
  margin: 0 -40px;
  width: calc(100% + 80px);
}

@media (max-width: 1200px) {
  .container .auth-page-wrapper {
    margin: 0 -32px;
    width: calc(100% + 64px);
  }
}

@media (max-width: 768px) {
  .container .auth-page-wrapper {
    margin: 0 -24px;
    width: calc(100% + 48px);
  }
}

@media (max-width: 576px) {
  .container .auth-page-wrapper {
    margin: 0 -16px;
    width: calc(100% + 32px);
  }
}

.auth-container {
  width: 100%;
  max-width: 100%;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.auth-content {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

/* Input with icon */
.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 6px;
  z-index: 2;
  width: 44px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 10px;
  color: var(--text-light);
  pointer-events: none;
  flex-shrink: 0;
}

.input-icon i {
  font-size: 16px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px 12px 64px !important;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  line-height: 1.5;
}

.auth-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
  outline: none;
  background: var(--bg);
}

.auth-input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.auth-input:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

.auth-btn {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  background: var(--primary);
  color: white;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.auth-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-footer-text {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-left: 4px;
}

.auth-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.invalid-feedback,
.valid-feedback {
  font-size: 13px;
  margin-top: 4px;
  display: none;
  line-height: 1.4;
}

/* Show invalid feedback when input is invalid and form is validated */
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Show valid feedback when input is valid and form is validated */
.was-validated .form-control:valid ~ .valid-feedback,
.was-validated .form-select:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback,
.form-select.is-valid ~ .valid-feedback {
  display: block;
}

/* Handle input-group case where feedback is inside mb-4 container */
.was-validated .mb-4:has(.input-group .form-control:invalid) .invalid-feedback,
.mb-4:has(.input-group .form-control.is-invalid) .invalid-feedback {
  display: block;
}

.was-validated .mb-4:has(.input-group .form-control:valid) .valid-feedback,
.mb-4:has(.input-group .form-control.is-valid) .valid-feedback {
  display: block;
}

.was-validated .mb-4:has(.input-group .form-control:valid) .valid-feedback,
.mb-4:has(.input-group .form-control.is-valid) .valid-feedback {
  display: block;
}

/* ===== ERROR PAGE ===== */
.error-page-wrapper {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 0;
  margin: 0;
}

.container .error-page-wrapper {
  margin: 0 -40px;
  width: calc(100% + 80px);
}

.error-container {
  width: 100%;
  max-width: 100%;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.error-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.error-icon {
  font-size: 72px;
  color: var(--primary);
  margin: 0;
  line-height: 1;
}

.error-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.error-message {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.error-description {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
  max-width: 500px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ===== FLASH MESSAGES ===== */
.alert-custom {
  border-radius: var(--radius);
  border: 1px solid;
  padding: 16px 20px;
  margin: 24px auto;
  max-width: 1000px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.alert-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.alert-custom i {
  font-size: 20px;
}

/* ===== RESPONSIVE ===== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .container {
    padding: 0 32px;
  }

  .navbar .container-fluid {
    padding: 16px 32px;
  }

  .listing-show-container {
    padding: 0 32px;
  }

  .container .form-page-wrapper,
  .container .error-page-wrapper {
    margin: 0 -32px;
    width: calc(100% + 64px);
  }
}

/* Tablets */
@media (max-width: 992px) {
  .navbar-center {
    order: 3;
    width: 100%;
    padding: 16px 0 0 0;
    margin-top: 16px;
    border-top: 1px solid var(--border);
  }

  .navbar-right {
    margin-left: auto;
    order: 2;
  }

  .navbar-collapse {
    width: 100%;
  }

  .search-box {
    max-width: 100%;
  }

  .listing-show-container {
    padding: 0 24px;
  }

  .booking-card {
    position: static;
    margin-top: 24px;
  }

  .container .form-page-wrapper,
  .container .error-page-wrapper {
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

  .form-container,
  .error-container {
    padding: 32px 16px;
  }

  .form-card {
    padding: 32px 24px;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .navbar .container-fluid {
    padding: 16px 24px;
  }

  .navbar-left {
    gap: 16px;
  }

  .navbar-brand img {
    height: 28px;
  }

  .navbar-center {
    padding: 16px 0 0 0;
  }

  .navbar-right {
    gap: 12px;
    width: 100%;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .dropdown {
    margin-left: auto;
  }

  .search-box {
    padding: 8px 8px 8px 20px;
  }

  .search-btn {
    width: 44px;
    height: 44px;
  }

  .dropdown {
    height: 40px;
    padding: 4px 4px 4px 10px;
  }

  .dropdown-toggle svg {
    width: 28px;
    height: 28px;
  }

  /* Filters */
  .choose {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 24px 0 32px;
  }

  .another {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .tax-toggle,
  #filterby {
    width: 100%;
    justify-content: space-between;
    height: 48px;
  }

  /* Listings */
  .listing-title {
    font-size: 22px;
  }

  .show-img {
    height: 400px;
  }

  .section-title {
    font-size: 20px;
  }

  /* Forms */
  .form-card {
    padding: 32px 24px;
  }

  .auth-page-wrapper {
    min-height: calc(100vh - 80px);
  }

  .auth-container {
    padding: 32px 16px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .auth-form {
    gap: 20px;
  }

  .form-group {
    gap: 6px;
  }

  .form-title {
    font-size: 24px;
  }

  /* Cards */
  .card-img-wrapper {
    padding-bottom: 70%;
  }

  /* Footer */
  .f-info {
    padding: 32px 0;
  }

  .f-info-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .navbar .container-fluid {
    padding: 12px 16px;
  }

  .navbar-left {
    gap: 12px;
  }

  .navbar-brand img {
    height: 24px;
  }

  .navbar-center {
    padding: 12px 0 0 0;
  }

  .navbar-right {
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .nav-link {
    font-size: 13px;
    padding: 10px 12px !important;
  }

  .search-box {
    padding: 6px 6px 6px 16px;
  }

  .search-input {
    font-size: 14px;
  }

  .search-input::placeholder {
    font-size: 14px;
  }

  .search-btn {
    width: 40px;
    height: 40px;
  }

  .dropdown {
    height: 38px;
    padding: 0px 20px;
  }

  .dropdown-toggle i {
    font-size: 18px;
  }

  .dropdown-toggle svg {
    width: 24px;
    height: 24px;
  }

  /* Filters */
  .choose {
    margin: 20px 0 24px;
    padding-bottom: 20px;
  }

  #filters {
    gap: 24px;
    padding: 6px 0;
  }

  .filter {
    gap: 6px;
    padding: 10px 0;
  }

  .filter-icon {
    width: 20px;
    height: 20px;
  }

  .filter-icon i {
    font-size: 16px;
  }

  .filter p {
    font-size: 11px;
  }

  #filterby,
  .tax-toggle {
    height: 44px;
    overflow: hidden;
  }

  .tax-toggle label {
    font-size: 13px;
  }

  .tax-toggle .form-check-input {
    width: 40px;
    height: 22px;
  }

  /* Listings */
  .listing-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .listing-meta {
    font-size: 13px;
    gap: 12px;
    margin-bottom: 20px;
  }

  .show-img {
    height: 300px;
    border-radius: var(--radius);
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .listing-description {
    font-size: 15px;
  }

  .price-large {
    font-size: 20px;
  }

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

  .map-container {
    height: 300px;
    border-radius: var(--radius);
  }

  .review-card {
    padding: 16px;
  }

  .review-form {
    padding: 24px 16px;
  }

  /* Forms */
  .container .form-page-wrapper,
  .container .error-page-wrapper {
    margin: 0 -16px;
    width: calc(100% + 32px);
  }

  .form-page-wrapper,
  .error-page-wrapper {
    min-height: calc(100vh - 60px);
  }

  .form-container,
  .error-container {
    padding: 24px 12px;
  }

  .form-header {
    margin-bottom: 24px;
  }

  .form-card {
    padding: 28px 20px;
  }

  .form-title {
    font-size: 22px;
  }

  .error-icon {
    font-size: 56px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-message {
    font-size: 18px;
  }

  .auth-page-wrapper {
    min-height: calc(100vh - 60px);
  }

  .auth-container {
    padding: 24px 12px;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .auth-header {
    margin-bottom: 24px;
    gap: 6px;
  }

  .auth-form {
    gap: 20px;
  }

  .form-group {
    gap: 6px;
  }

  .input-icon {
    width: 40px;
    height: 40px;
    left: 10px;
  }

  .input-icon i {
    font-size: 15px;
  }

  .auth-input {
    padding-left: 58px !important;
    height: 40px;
    font-size: 14px;
  }

  .auth-btn {
    height: 44px;
    font-size: 15px;
    margin-top: 4px;
  }

  .auth-footer {
    margin-top: 20px;
    padding-top: 20px;
  }

  .auth-footer-text {
    font-size: 13px;
  }

  .form-title {
    font-size: 20px;
  }

  .form-header p {
    font-size: 14px;
  }

  .form-label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-control,
  .form-control-lg {
    padding: 12px 14px;
    font-size: 15px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .btn-lg {
    padding: 14px 24px;
  }

  /* Cards */
  .card-title {
    font-size: 14px;
  }

  .card-location {
    font-size: 14px;
  }

  .card-price,
  .card-price-unit {
    font-size: 14px;
  }

  /* Footer */
  .f-info {
    padding: 24px 0;
  }

  .f-info-socials i {
    font-size: 16px;
    margin: 0 12px;
  }

  .f-info-brand,
  .f-info-links a {
    font-size: 13px;
  }

  /* Error page */
  .error-icon {
    font-size: 56px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-message {
    font-size: 18px;
  }

  .error-description {
    font-size: 14px;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-actions .btn {
    width: 100%;
  }

  /* Auth pages */
  .auth-page-wrapper {
    min-height: calc(100vh - 60px);
  }

  .auth-container {
    padding: 20px 12px;
  }

  .auth-content {
    max-width: 100%;
  }

  .auth-card {
    padding: 24px 16px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .auth-header {
    margin-bottom: 20px;
    gap: 6px;
  }

  .auth-form {
    gap: 18px;
  }

  .form-group {
    gap: 6px;
  }

  .form-label {
    font-size: 13px;
  }

  .input-icon {
    width: 38px;
    height: 30px;
    left: 6px;
    border-radius: 8px;
  }

  .input-icon i {
    font-size: 14px;
  }

  .auth-input {
    padding-left: 54px !important;
    height: 38px;
    font-size: 14px;
    border-radius: 8px;
  }

  .auth-btn {
    height: 42px;
    font-size: 15px;
    border-radius: 8px;
    margin-top: 4px;
  }

  .auth-footer {
    margin-top: 18px;
    padding-top: 18px;
  }

  .auth-footer-text {
    font-size: 13px;
  }

  /* Flash messages */
  .alert-custom {
    padding: 12px 16px;
    margin: 16px auto;
    font-size: 14px;
  }
}

/* Extra small phones */
@media (max-width: 400px) {
  .container {
    padding: 0 12px;
  }

  .navbar .container-fluid {
    padding: 10px 12px;
  }

  .navbar-brand img {
    height: 22px;
  }

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

  .container .form-page-wrapper,
  .container .error-page-wrapper {
    margin: 0 -12px;
    width: calc(100% + 24px);
  }

  .form-container,
  .error-container {
    padding: 16px 8px;
  }

  .form-card {
    padding: 20px 16px;
  }

  .form-title {
    font-size: 18px;
  }

  .error-icon {
    font-size: 48px;
  }

  .error-title {
    font-size: 20px;
  }

  .error-message {
    font-size: 16px;
  }

  .error-description {
    font-size: 13px;
  }

  /* Auth pages */
  .auth-container {
    padding: 16px 8px;
  }

  .auth-card {
    padding: 20px 16px;
  }

  .auth-title {
    font-size: 18px;
  }

  .auth-subtitle {
    font-size: 12px;
  }

  .auth-header {
    margin-bottom: 20px;
  }

  .auth-form {
    gap: 16px;
  }

  .input-icon {
    width: 36px;
    height: 36px;
    left: 8px;
  }

  .input-icon i {
    font-size: 13px;
  }

  .auth-input {
    padding-left: 52px !important;
    height: 36px;
    font-size: 14px;
  }

  .auth-btn {
    height: 40px;
    font-size: 14px;
  }
}

/* ===== UTILITIES ===== */
.text-muted {
  color: var(--text-light) !important;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== HOME PAGE STYLES ===== */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 120px 0 80px;
  margin: 0 -40px 0 -40px;
  position: relative;
  overflow: hidden;
  width: calc(100% + 80px);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 48px;
  opacity: 0.95;
  line-height: 1.5;
}

/* Hero Search Box */
.hero-search-box {
  margin-bottom: 48px;
}

.hero-search-wrapper {
  background: white;
  border-radius: var(--radius-xl);
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  max-width: 700px;
  margin: 0 auto;
}

.hero-search-wrapper:hover {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.hero-search-wrapper .search-icon {
  color: var(--text-light);
  font-size: 20px;
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}

.hero-search-input:focus {
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.hero-search-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.hero-search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.hero-search-btn i {
  font-size: 14px;
}

/* Quick Filters */
.hero-quick-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quick-filter-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.quick-filter-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: white;
}

.quick-filter-item i {
  font-size: 16px;
}

/* Featured Section */
.featured-section {
  padding: 80px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

.view-all-btn:hover {
  color: var(--primary-hover);
  gap: 12px;
  color: var(--primary-hover);
}

.view-all-btn i {
  font-size: 14px;
  transition: var(--transition);
}

/* Featured Listings Grid */
.featured-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.featured-listing-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-listing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.featured-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  background: var(--bg-secondary);
}

.featured-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.featured-listing-card:hover .featured-card-image img {
  transform: scale(1.05);
}

.featured-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.featured-listing-card:hover .featured-card-overlay {
  opacity: 1;
}

.featured-location {
  color: white;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.featured-location i {
  font-size: 12px;
}

.featured-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.featured-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.price-unit {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
}

.featured-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-light);
}

.featured-owner i {
  font-size: 12px;
}

/* No Listings */
.no-listings {
  text-align: center;
  padding: 80px 20px;
}

.no-listings i {
  font-size: 64px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.no-listings h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.no-listings p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f0f0 100%);
  padding: 80px 0;
  margin: 0 -40px 0 -40px;
  width: calc(100% + 80px);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-button,
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-button,
.cta-primary {
  background: var(--primary);
  color: white;
}

.cta-button:hover,
.cta-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 56, 92, 0.3);
  color: white;
}

.cta-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.cta-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--text);
}

.cta-button i,
.cta-primary i,
.cta-secondary i {
  font-size: 14px;
}

/* Responsive Design for Home Page */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .section-title,
  .cta-title {
    font-size: 40px;
  }

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

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 60px;
    margin: 0 -16px 0 -16px;
    width: calc(100% + 32px);
  }

  .cta-section {
    margin: 0 -16px 0 -16px;
    width: calc(100% + 32px);
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .hero-search-wrapper {
    flex-direction: column;
    padding: 16px;
  }

  .hero-search-input {
    width: 100%;
    padding: 12px 0;
  }

  .hero-search-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-quick-filters {
    gap: 12px;
  }

  .quick-filter-item {
    padding: 10px 16px;
    font-size: 13px;
  }

  .featured-section {
    padding: 60px 0;
  }

  .section-title,
  .cta-title {
    font-size: 32px;
  }

  .section-subtitle,
  .cta-subtitle {
    font-size: 18px;
  }

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

  .cta-section {
    padding: 60px 0;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button,
  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-section {
    margin: 0 -16px 0 -16px;
    width: calc(100% + 32px);
  }

  .cta-section {
    margin: 0 -16px 0 -16px;
    width: calc(100% + 32px);
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title,
  .cta-title {
    font-size: 28px;
  }

  .featured-listings-grid {
    grid-template-columns: 1fr;
  }
}