/* =========================
   HEADER
========================= */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.header-left > * {
  flex-shrink: 0;
}

.header-left .auth-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* =========================
   HEADER - دکمه ثبت آگهی
========================= */
.header-right .post-ad-btn {
  background: transparent;
  color: var(--primary);
  padding: 8px 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.header-right .post-ad-btn:hover {
  background: var(--primary);
  color: #fff;
}

.header-right .post-ad-btn .post-icon {
  font-size: 16px;
}


/* =========================
   AUTH MODAL
========================= */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.2);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.auth-modal.active {
  display: flex;
}

.auth-box {
  margin-top: 10px;
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  padding: 30px;
  position: relative;
}

.close-modal {
  position: absolute;
  left: 16px;
  top: 16px;
  background: none;
  font-size: 22px;
  border: none;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.tab.active {
  background: #2563eb;
  color: #fff;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.method-switch {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.primary-btn {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.terms {
  font-size: 13px;
  margin-bottom: 12px;
  display: block;
}


/* =========================
   AUTH INPUTS
========================= */
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: #f9fafb;
  transition: all 0.25s ease;
}

.auth-form input::placeholder {
  color: #9ca3af;
}

.auth-form input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
}

.auth-form input[type="checkbox"],
.auth-form input[type="radio"]{
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* =========================
   TERMS
========================= */
.terms-wrapper {
  margin-bottom: 16px;
}

.terms-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.terms-check input[type="checkbox"]{
  width: 16px !important;
  height: 16px !important;
  accent-color: #2563eb;
}

.terms-check button {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.terms-box {
  display: none;
  margin-top: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
}

.terms-box.active {
  display: block;
}

.close-terms {
  margin-top: 10px;
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 13px;
}


/* =========================
   HERO (اصلاح محوشدگی سفید)
========================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 850px; 
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    /* تغییرات اعمال شده: شفافیت تا 65 درصد حفظ شده و محوشدگی از قسمت‌های پایین‌تر شروع می‌شود */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 65%,
        rgba(255, 255, 255, 0.7) 85%,
        rgba(255, 255, 255, 1) 95%,
        rgba(255, 255, 255, 1) 100%
    ), url('../../images/hero-image.jpg') no-repeat center center;
    background-size: cover;
    padding-bottom: 50px; 
    margin-bottom: 80px;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    z-index: 2;
}


/* 2. تنظیم باکس جستجو */
.hero .search-box {
    order: 1; 
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid red; 
    margin-bottom: 460px; 
}

.search-box input {
    flex: 1;
    padding: 16px;
    border: none;
    font-size: 15px;
    background: transparent;
}

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

.search-box button {
    background: var(--primary);
    color: #fff;
    padding: 0 24px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* 3. تنظیم متن‌ها: پایین داخل محوشدگی سفید */
.hero h1 {
    order: 2; 
    font-size: 40px;
    color: #0f172a; 
    margin-bottom: 12px;
    font-weight: 800;
    margin-top: 0;
}

.hero h2 {
    order: 2;
    font-size: 26px;
    color: #334155;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero p.hero-sub {
    order: 2;
    font-size: 18px;
    color: #475569;
    margin-bottom: 0;
}


/* =========================
   HOW IT WORKS  
========================= */
.how-it-works h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.toggle-buttons {
  display: inline-flex;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.toggle-btn {
  padding: 10px 24px;
  background: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.toggle-btn.active {
  background: var(--primary);
  color: #fff;
}

.boxes-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.how-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0 16px 16px 16px;                      
  transition: box-shadow 0.2s;
  overflow: hidden;                
  display: flex;
  flex-direction: column;
}

.how-box:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);   
}

.how-box .image-placeholder {
  height: 280px;                 
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;   
  flex-shrink: 0;
  margin: 0 0 16px 0;
}

.how-box .image-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;              
  object-position: center;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;   
}

.how-box h4 {
  font-size: 16px;                 
  font-weight: 600;
  margin-bottom: 6px;      
  text-align: center;
}

.how-box p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;        
  text-align: center;
  line-height: 1.5;
}


/* =========================
   GENERAL
========================= */
.text-center {
  text-align: center;
}

.muted {
  color: var(--gray);
}

.mt-40 {
  margin-top: 40px;
}

.mt-20{
  margin-top: 20px;
}

.link-primary {
  color: var(--primary);
  font-weight: 500;
}


/* =========================
   NEIGHBORHOODS
========================= */

.neighborhoods h3 {
  font-size: 24px;
}


/* =========================
   CATEGORIES
========================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.categories-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  direction: ltr;
  scroll-behavior: smooth;
  padding-bottom: 10px; /* برای جلوگیری از برش سایه */
}

.categories-slider::-webkit-scrollbar {
  display: none;
}

.category-card {
  direction: rtl;
  min-width: 180px;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px; 
}

.cat-icon-wrapper {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 18px;
  cursor: pointer;
}


/* =========================
   ADS
========================= */
.latest-ads {
  padding-top: 10px;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.ad-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.ad-card:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.ad-image {
  height: 220px;
  background: #e5e7eb;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.ad-image img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ad-body {
  padding: 5px;
}

.ad-body h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.price {
  color: var(--primary);
  font-size: 14px;
}

.ad-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.owner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar.default {
  background: #e5e7eb;
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================
   BUTTON
========================= */
.btn-outline {
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 500;
}

.btn-outline:hover{
  background-color: #0066cc;
  color: #fff;
  transition: all 500ms;
}


/* =========================
   MORE INFO
========================= */
.more-info h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0066cc;
}


/* =========================
   WHY US
========================= */
.why-us h3 {
  font-size: 24px;
  margin-bottom: 32px;
}

.why-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.why-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: right;
  transition: box-shadow 0.2s;
}

.why-box:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.why-box h4 {
  font-size: 15px;
  margin-top: 12px;
  margin-bottom: 6px;
}

.why-box p {
  font-size: 13px;
  color: var(--gray);
}

.why-box .image-placeholder {
  height: 90px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.why-box .image-placeholder img{
  width: 40%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* =========================
   TESTIMONIALS
========================= */
.testimonials h3 {
  font-size: 24px;
  margin-bottom: 32px;
}

.testimonial-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.testimonial-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: right;
  transition: box-shadow 0.2s;
}

.testimonial-box:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.testimonial-text {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 12px;
}

.testimonial-owner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-owner .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  overflow: hidden;
}

.testimonial-owner .avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-owner .name {
  font-weight: 500;
  display: block;
}

.testimonial-owner .location {
  font-size: 12px;
  color: var(--gray);
}


/* =========================
   SOCIAL IMPACT
========================= */
.social-impact h3 {
  font-size: 24px;
  margin-bottom: 32px;
}

.social-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.social-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.social-box:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.social-box .logo-placeholder {
  height: 60px;
  width: 60px;
  margin: 0 auto 12px;
  border-radius: 12px;
  overflow: hidden;
}

.social-box .logo-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-box p {
  font-size: 14px;
  color: var(--gray);
}


/* =========================
   ALL PRODUCTS
========================= */
.all-products h3 {
  font-size: 24px;
  margin-bottom: 32px;
}

.product-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-category {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: right;
  transition: box-shadow 0.2s;
}

.product-category:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.category-img-placeholder {
  height: 60px;
  width: 60px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: inline-block;
  overflow: hidden;
}

.category-img-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-category p {
  font-size: 13px;
  margin: 0;
}


/* =========================
   POPULAR PRODUCTS
========================= */
.popular-products h3 {
  font-size: 24px;
  margin-bottom: 32px;
}

.popular-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.popular-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: right;
  transition: box-shadow 0.2s;
}

.popular-box:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.popular-box h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.popular-box p {
  font-size: 13px;
  margin: 2px 0;
}


/* =========================
   FAQ
========================= */
.faq h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
  text-align: right;
}

.accordion-item {
  margin-bottom: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.accordion-question {
  background: #f9fafb;
  border: none;
  padding: 16px;
  width: 100%;
  text-align: right;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.accordion-question:hover {
  background: #e5e7eb;
}

.accordion-answer {
  display: none;
  padding: 16px;
  background: #fff;
  font-size: 13px;
  color: var(--gray);
}


/* =========================
   APP DOWNLOAD
========================= */
.app-download {
  background-color: #0050a0;
  padding: 15px 0;
  border-radius: var(--radius);
  color: white;
}

.app-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.app-text h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.app-logo {
  height: 40px;
}

.app-buttons a {
  display: inline-block;
  padding: 12px 24px;
  margin: 5px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}

.app-buttons a:hover {
  background: #f1f1f1;
  color: #000000;
  font-weight: bold;
}


/* =========================
   TRUST BADGES
========================= */
.trust-badges .container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-badges a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  text-decoration: none;
}

.trust-badges img{
  height: 90px;
  display: block;
  margin: 0;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}


/* =========================
   SPONSORS
========================= */
.sponsors {
  background: #111;
  padding: 30px 0;
}

.sponsor-slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0 10px;
  gap: 20px;
}

.sponsor-item {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.2s, background 0.2s;
}

.sponsor-item:hover{
  transform: scale(1.05);
}

.sponsor-item img {
  height: 90px;
  transition: transform 0.2s;
  display: block;
}

.sponsor-item img:hover {
  transform: scale(1.1);
}


/* =========================
   FOOTER
========================= */
.footer {
  background: #111;
  color: #fff;
  padding: 40px 0;
  font-size: 13px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--primary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-social i {
  font-size: 20px;
  margin: 0 5px;
}

#instagram { color: rgb(206, 1, 206); }
#linkedin  { color: #0050a0; }

.ad-card .ad-footer{
  display: none !important;
}


/* ===== RENT MODAL ===== */
.rent-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  backdrop-filter: blur(4px);
}

.rent-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rent-modal .modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transform: translateY(-50px);
  transition: transform 0.3s ease-in-out;
}

.rent-modal.is-open .modal-content {
  transform: translateY(0);
}

.rent-modal .modal-header {
  padding: 18px 24px;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rent-modal .close-btn {
  background: #f5f5f5;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

.rent-modal .close-btn:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

.rent-modal .modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rent-modal .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rent-modal label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.rent-modal input[type="date"],
.rent-modal input[type="text"],
.rent-modal input[type="number"],
.rent-modal select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.rent-modal input:focus,
.rent-modal select:focus {
  border-color: #2563eb; 
  box-shadow: 0 0 8px rgba(79,70,229,0.2);
}

#returnDateDisplay,
.rent-modal .date-display {
  background: #f9f9f9;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: #222;
  border: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.rent-modal input[type="radio"] {
  accent-color: #2563eb; 
  margin-right: 6px;
}

.rent-modal .delivery-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 500;
  color: #444;
}

#rentTotal {
  background: #eef2ff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: #2563eb;
  text-align: center;
  font-size: 1.05rem;
}

.rent-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.rent-modal .btn-primary {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rent-modal .btn-primary:hover {
  background: #1555e0;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .rent-modal .modal-content {
    width: 95%;
    max-height: 95%;
  }
}

@media (max-height: 500px) {
  .rent-modal .modal-content {
    max-height: 95%;
  }
}

/* =========================
   CITY MODAL 
========================= */
.city-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(3px);
}

.city-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.city-modal {
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: translateY(-20px);
  transition: transform 0.3s;
}

.city-modal-overlay.active .city-modal {
  transform: translateY(0);
}

.close-city-modal {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 24px;
  color: var(--gray);
  cursor: pointer;
  background: transparent;
  border: none;
}

.city-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.city-item-btn {
  background: #f9fafb;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
}

.city-item-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
