@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Global Responsive Styles - Mobile First Approach */

:root {
  --color-primary: #7A1B2C;
  --color-accent: #F36A6A;
  --color-bg: #faf9f9;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --shadow-sm: 0 2px 8px rgba(31,41,55,0.08);
  --shadow-md: 0 8px 24px rgba(31,41,55,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --container-max: 1200px;
}

/* Normalize small details */
ul, ol { margin: 0; padding-left: 1.1rem; }
:where(h1,h2,h3) { margin: 0 0 .5rem; line-height: 1.2; }

/* Navbar */
.app-navbar { position: sticky; top:0; background: #fff; border-bottom:1px solid rgba(0,0,0,0.06); z-index:50; box-shadow: 0 4px 14px rgba(0,0,0,.03); }
.app-navbar-inner { max-width: var(--container-max); margin:0 auto; padding:0.75rem 1.25rem; display:flex; align-items:center; gap:1rem; }
.brand { display:flex; align-items:center; gap:.6rem; text-decoration:none; }
.brand-logo { width:140px; height:auto; object-fit:contain; }
.brand-text { font-weight:900; color:var(--color-primary); letter-spacing:.2px; font-size:1.05rem; display:none; }
.nav-links { display:flex; align-items:center; gap:1rem; margin-left:1rem; flex-wrap:wrap; }
.nav-link { color:#374151; text-decoration:none; font-weight:600; font-size:.95rem; position:relative; padding:.25rem .5rem; }
.nav-link:hover { color: var(--color-primary); }
.nav-plus { display:inline-block; font-weight:900; color:#1f2937; margin-left:4px; }
.nav-actions { display:flex; align-items:center; margin-left:auto; gap:.5rem; }
.nav-search { display:none; }
.nav-search-input { padding:0.55rem .9rem; border:1px solid #e5e7eb; border-radius:999px; width:220px; }
.icon-btn { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:.45rem .65rem; cursor:pointer; font-size:.95rem; box-shadow:var(--shadow-sm); }
.icon-btn:hover { background:#f3f4f6; }

.nav-toggle { display:none; background:none; border:none; padding:.25rem; margin-left:auto; cursor:pointer; }
.nav-toggle .bar { display:block; width:22px; height:2px; background:#111; margin:5px 0; transition:transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .brand-logo { width:120px; }
  .brand-text { display:none; }
  .nav-actions { display:flex; }
  .nav-toggle { display:block; position:absolute; right:1.25rem; top:50%; transform:translateY(-50%); z-index:60; }
  .nav-links { 
    position:fixed !important; 
    top:56px !important; 
    right:0 !important; 
    left:auto !important; 
    width:280px !important; 
    max-width:90vw !important;
    background:#fff !important; 
    border-bottom:1px solid rgba(0,0,0,0.06) !important; 
    border-left:1px solid rgba(0,0,0,0.06) !important;
    box-shadow:var(--shadow-sm) !important; 
    display:none !important; 
    flex-direction:column !important; 
    padding:0.75rem 1rem !important; 
    text-align:right !important;
    transform:translateX(100%) !important;
    transition:transform 0.3s ease !important;
    z-index:50 !important;
  }
  .nav-links.open { 
    display:flex !important; 
    transform:translateX(0) !important;
  }
  .nav-link { 
    text-align:right !important; 
    padding:12px 16px !important; 
    width:100% !important; 
    border-bottom:1px solid rgba(0,0,0,0.05) !important;
    transition:background-color 0.2s ease !important;
  }
  .nav-link:hover {
    background-color:rgba(122, 27, 44, 0.05) !important;
  }
  .nav-link:last-child {
    border-bottom:none !important;
  }
}

body, html { margin:0; padding:0; box-sizing:border-box; font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-size:15px; overflow-x:hidden; width:100%; max-width:100vw; background:var(--color-bg); color:var(--color-text); }
* { box-sizing:border-box; }

@media (max-width: 600px) {
  body, html { overflow-x:hidden; width:100vw; max-width:100vw; font-size:14px; }
}

.container, .main-content, .property-list, .property-details { width:95%; max-width:var(--container-max); margin:0 auto; padding:12px; }
img, video { max-width:100%; height:auto; display:block; }

.app-footer { background:#f7f7f7; border-top:1px solid rgba(0,0,0,0.06); color:var(--color-muted); margin-top:var(--space-8); }
.app-footer-inner { max-width:var(--container-max); margin:0 auto; padding:var(--space-6) var(--space-4); display:flex; flex-direction:column; gap:var(--space-3); text-align:center; }

@media (min-width: 601px) and (max-width: 1024px) { .container, .main-content, .property-list, .property-details { width:90%; padding:16px; } }
@media (min-width: 1025px) { .container, .main-content, .property-list, .property-details { width:85%; padding:20px; } }
@media (max-width: 600px) {
  .container, .main-content, .property-list, .property-details { width:100%; padding:8px; }
  h1, h2, h3, h4 { font-size:1.1em; }
  .property-list, .property-details { flex-direction:column; gap:8px; }
  .nav-actions { gap:.25rem; }
}

/* Slider - details page */
.slider { position:relative; background:#fff; border-radius:12px; box-shadow:var(--shadow-sm, 0 2px 10px rgba(15,23,42,.06)); overflow:hidden; }
.slider-track { display:flex; transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1); }
.slide { min-width:100%; aspect-ratio: 16/10; background:#f3f4f6; display:flex; align-items:center; justify-content:center; }
.slide img { width:100%; height:100%; object-fit:cover; display:block; }
.slider-nav { position:absolute; inset:auto 0 0 0; display:flex; align-items:center; justify-content:space-between; padding:.75rem; gap:.5rem; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 100%); }
.slider-btn { 
  background: rgba(255,255,255,0.95); 
  color:#111; 
  border:none; 
  width:44px; 
  height:44px; 
  border-radius:50%; 
  display:grid; 
  place-items:center; 
  cursor:pointer; 
  box-shadow:0 4px 12px rgba(0,0,0,.15); 
  font-size: 20px; 
  font-weight: bold; 
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}
.slider-btn:hover:not(:disabled) { 
  background: rgba(255,255,255,1); 
  transform: scale(1.1); 
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.slider-btn:active:not(:disabled) { transform: scale(0.95); }
.slider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.slider-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.slider-indicators { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.slider-dot { 
  width:10px; 
  height:10px; 
  border-radius:50%; 
  background:rgba(255,255,255,.6); 
  border:2px solid rgba(0,0,0,.1); 
  cursor: pointer; 
  transition: all 0.2s ease;
}
.slider-dot.active { 
  background: var(--brand, #7A1B2C); 
  border-color: rgba(255,255,255,0.8); 
  transform: scale(1.2);
}
.slider-dot:hover { 
  background:rgba(255,255,255,.9); 
  transform: scale(1.1);
}

.thumbnails { 
  display:flex; 
  justify-content:center;
  gap:.75rem; 
  margin-top:.75rem; 
  overflow-x:auto; 
  overflow-y:hidden;
  padding:.25rem .25rem .5rem .25rem; 
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 27, 44, 0.3) transparent;
}
.thumbnails::-webkit-scrollbar {
  height: 6px;
}
.thumbnails::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
}
.thumbnails::-webkit-scrollbar-thumb {
  background: rgba(122, 27, 44, 0.3);
  border-radius: 3px;
}
.thumbnails::-webkit-scrollbar-thumb:hover {
  background: rgba(122, 27, 44, 0.5);
}
.thumbnail { 
  width:90px; 
  height:64px; 
  border-radius:10px; 
  overflow:hidden; 
  border:2px solid transparent; 
  cursor:pointer; 
  flex:0 0 auto; 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #f8f9fa;
}
.thumbnail:hover:not(.active) {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  border-color: rgba(122, 27, 44, 0.3);
}
.thumbnail img { width:100%; height:100%; object-fit:cover; display:block; }
.thumbnail.active { 
  border-color: var(--brand, #7A1B2C); 
  border-width: 3px;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(122, 27, 44, 0.4);
  z-index: 2;
}
.thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(122, 27, 44, 0.1), rgba(243, 106, 106, 0.1));
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 8px;
  pointer-events: none;
}
.thumbnail.active::before {
  opacity: 1;
}
.thumbnail::after {
  content: attr(data-index);
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.thumbnail:hover::after,
.thumbnail.active::after {
  opacity: 1;
}

/* Mobile responsiveness for slider */
@media (max-width: 768px) {
  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .slider-nav {
    padding: 0.5rem;
  }
  .thumbnails {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .thumbnail {
    width: 70px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .thumbnails {
    gap: 0.4rem;
  }
  .thumbnail {
    width: 60px;
    height: 42px;
  }
}

/* Sketch Gallery */
.sketch-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.sketch-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sketch-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
}

.sketch-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  cursor: pointer;
}

.sketch-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .sketch-gallery {
    grid-template-columns: 1fr;
  }
  
  .sketch-image-container {
    height: 200px;
  }
  
  .sketch-modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .sketch-modal-footer {
    padding: 12px 16px !important;
  }
  
  .sketch-modal-footer button {
    padding: 6px 12px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .sketch-gallery {
    gap: 12px;
  }
  
  .sketch-image-container {
    height: 180px;
  }
  
  .sketch-modal-header h3 {
    font-size: 16px !important;
  }
  
  .sketch-modal-body {
    padding: 16px !important;
  }
}

.responsive-property-card { flex-direction:column; gap:16px; padding:1rem; }
.responsive-property-image-group { flex-direction:column; min-width:0; max-width:100%; }
@media (min-width: 601px) and (max-width: 1024px) {
  .responsive-property-card { flex-direction:row; gap:24px; padding:1.5rem; }
  .responsive-property-image-group { flex-direction:row; align-items:center; width:50%; }
}
@media (min-width: 1025px) {
  .responsive-property-card { flex-direction:row; gap:32px; padding:2rem; }
  .responsive-property-image-group { flex-direction:row; align-items:center; width:60%; }
}
@media (max-width: 600px) {
  .responsive-property-card { flex-direction:column; gap:8px; padding:0.5rem; min-width:0; max-width:100vw; }
  .responsive-property-image-group { flex-direction:column; align-items:center; width:100%; }
  .responsive-property-thumbnails { flex-direction:row !important; gap:4px; max-width:100vw; max-height:100px; overflow-x:auto; overflow-y:hidden; margin-bottom:8px; margin-right:0; }
}

/* Form Styles (paf- prefix) */
.responsive-form-container { background:#fff; border-radius:12px; box-shadow:0 4px 20px rgba(122,27,44,0.10); padding:1.5rem; max-width:100%; width:100%; margin:0 auto; position:relative; display:flex; flex-direction:column; gap:1rem; }
@media (min-width: 601px) and (max-width: 1024px) { .responsive-form-container { padding:2rem; max-width:500px; border-radius:16px; } }
@media (min-width: 1025px) { .responsive-form-container { padding:2.5rem; max-width:600px; border-radius:20px; } }
@media (max-width: 600px) { .responsive-form-container { padding:1rem; max-width:95vw; border-radius:12px; margin:0.5rem; } }

.responsive-btn { background:linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%); color:#fff; border:none; border-radius:8px; padding:0.8rem 1.2rem; font-size:0.9rem; font-weight:700; cursor:pointer; box-shadow:var(--shadow-sm); transition:transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease; text-transform:uppercase; letter-spacing:0.5px; opacity:1; width:100%; max-width:100%; margin:0 auto; display:block; }
.responsive-btn:hover { box-shadow:var(--shadow-md); transform: translateY(-1px); filter: saturate(1.05); }
.responsive-btn:active { transform: translateY(0); filter: saturate(0.95); }
@media (min-width: 601px) and (max-width: 1024px) { .responsive-btn { padding:0.9rem 1.5rem; font-size:1rem; max-width:300px; } }
@media (min-width: 1025px) { .responsive-btn { padding:1rem 2rem; font-size:1.1rem; max-width:350px; } }
@media (max-width: 600px) { .responsive-btn { padding:0.7rem 1rem; font-size:0.85rem; max-width:100%; } }

.responsive-input { width:100%; max-width:100%; padding:0.8rem; border-radius:8px; border:1.5px solid #e0e0e0; font-size:0.95rem; background:#faf9f9; color:#222; outline:none; transition:border-color 0.2s, box-shadow 0.2s; text-align:center; margin:0 auto 0.8rem auto; display:block; }
.responsive-input:focus { border-color:#7A1B2C; box-shadow: 0 0 0 3px rgba(122,27,44,0.12); }
@media (min-width: 601px) and (max-width: 1024px) { .responsive-input { padding:0.9rem; font-size:1rem; max-width:400px; } }
@media (min-width: 1025px) { .responsive-input { padding:1rem; font-size:1.05rem; max-width:450px; } }
@media (max-width: 600px) { .responsive-input { padding:0.7rem; font-size:0.9rem; max-width:100%; } }

.responsive-error { background:#fee; border:1px solid #fcc; border-radius:8px; padding:0.8rem; margin-bottom:1rem; color:#c33; font-size:0.9rem; text-align:center; }

.responsive-heading { font-size:clamp(1.3rem, 4vw, 1.9rem); font-weight:800; color:#7A1B2C; letter-spacing:0.2px; margin-bottom:0.4rem; text-align:center; }
.responsive-subheading { font-size:clamp(0.85rem, 2.5vw, 1rem); color:#666; font-weight:500; text-align:center; }
.responsive-label { display:block; margin-bottom:0.4rem; font-size:0.95rem; font-weight:600; color:#333; text-align:center; }

.login-container { min-height:100vh; background:linear-gradient(135deg, #faf9f9 0%, #f0f8ff 100%); display:flex; align-items:center; justify-content:center; padding:1rem; }
.login-back-btn { position:absolute; top:1rem; left:1rem; background:none; border:none; font-size:1.5rem; cursor:pointer; color:#7A1B2C; padding:0.5rem; border-radius:50%; transition:background 0.2s; }

.property-details-modern { display:flex; flex-direction:column; gap:1rem; padding:1rem; max-width:1200px; margin:0 auto; }
@media (min-width: 601px) and (max-width: 1024px) { .property-details-modern { flex-direction:row; gap:1.5rem; padding:1.5rem; } }
@media (min-width: 1025px) { .property-details-modern { flex-direction:row; gap:2rem; padding:2rem; } }
.details-main-col, .details-sidebar { flex:1; padding:1rem; }
@media (max-width: 600px) { .details-main-col, .details-sidebar { padding:0.5rem; } }
.details-gallery { display:flex; flex-direction:column; gap:0.5rem; margin-bottom:1rem; }
@media (min-width: 601px) and (max-width: 1024px) { .details-gallery { flex-direction:row; gap:1rem; } }
@media (min-width: 1025px) { .details-gallery { flex-direction:row; gap:1.5rem; } }
.details-gallery img { width:100%; height:200px; object-fit:cover; border-radius:8px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.details-gallery img:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (min-width: 601px) and (max-width: 1024px) { .details-gallery img { height:250px; border-radius:12px; } }
@media (min-width: 1025px) { .details-gallery img { height:300px; border-radius:16px; } }
.details-contact-card { background:#fff; border-radius:12px; padding:1rem; box-shadow:0 2px 10px rgba(122,27,44,0.1); margin-top:1rem; }

/* Admin Page Styles (paf- prefix) */
.paf-property-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.paf-property-card { 
  background: #fff; 
  border: 1px solid #e0e0e0; 
  border-radius: 8px; 
  padding: 1rem; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s, transform 0.12s ease;
}
.paf-property-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }
.paf-property-actions { 
  display: flex; 
  gap: 0.5rem; 
  margin-top: 0.5rem; 
  flex-wrap: wrap;
}
.paf-edit-btn { 
  background: #7A1B2C; 
  color: white; 
  padding: 0.4rem 0.8rem; 
  border-radius: 4px; 
  text-decoration: none; 
  font-size: 0.8rem;
  transition: background 0.2s;
}
.paf-edit-btn:hover { background: #5a1420; }
.paf-delete-btn { 
  background: #dc3545; 
  color: white; 
  padding: 0.4rem 0.8rem; 
  border-radius: 4px; 
  text-decoration: none; 
  font-size: 0.8rem;
  transition: background 0.2s;
}
.paf-delete-btn:hover { background: #c82333; }

/* Property grid and modern card */
.property-grid { display:grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px) { .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) { .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

.card-modern { background:#fff; border:1px solid #eee; border-radius:12px; overflow:hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.12s ease; display:flex; flex-direction:column; }
.card-modern:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-media { position:relative; width:100%; aspect-ratio: 16 / 10; background:#f3f4f6; overflow:hidden; }
.card-media img { width:100%; height:100%; object-fit:cover; display:block; }
.card-body { padding:0.9rem 1rem; display:flex; flex-direction:column; gap:0.4rem; }
.card-title { margin:0; font-weight:800; color:#1f2937; font-size:1rem; }
.card-sub { color:#6b7280; font-size:0.85rem; }
.card-footer { padding:0.75rem 1rem 1rem; display:flex; align-items:center; justify-content:space-between; }
.price-badge { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color:#fff; padding:0.25rem 0.6rem; border-radius:10px; font-weight:800; font-size:0.85rem; }
.view-link { text-decoration:none; font-weight:700; color: var(--color-primary); }
.view-link:hover { text-decoration:underline; } 

/* Home Page Responsive Styles */
.property-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  padding: 0 !important;
}

.card-row {
  display: grid !important;
  grid-template-columns: 360px 1fr !important;
  gap: 24px !important;
  align-items: center !important;
  padding: 18px !important;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
  border-left: 6px solid #e11d48 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.row-media {
  width: 100% !important;
  height: 260px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.row-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.property-title {
  margin: 0 0 6px 0 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

.property-features {
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  color: #334155 !important;
}

.feature-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.property-actions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 16px !important;
  margin-top: 10px !important;
  width: 100% !important;
}
.property-actions a { margin: 0 !important; }
.property-actions > div { grid-column: 1 / -1 !important; align-self: center !important; }
/* Normalize inline-styled CTAs for equal widths */
.property-actions .book-now-btn,
.property-actions .share-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  padding: 0 20px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.read-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  padding: 0 20px !important;
  background: #e11d48 !important;
  color: #fff !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: background-color 0.2s ease;
  width: 100% !important;
  min-width: 0 !important;
}

.read-more-btn:hover {
  background: #be185d !important;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .card-row {
    grid-template-columns: 300px 1fr !important;
    gap: 20px !important;
    padding: 16px !important;
  }
  .property-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 14px !important;
  }
  
  .row-media {
    height: 220px !important;
  }
  
  .property-title {
    font-size: 24px !important;
  }
  
  .property-features {
    gap: 12px !important;
  }
  
  .feature-badge {
    font-size: 13px !important;
    padding: 5px 8px !important;
  }
}

/* Desktop explicit 3-column alignment for action buttons */
@media (min-width: 1025px) {
  .property-actions {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .property-grid {
    gap: 20px !important;
  }
  
  .card-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 14px !important;
    margin: 0 8px !important;
  }
  
  .row-media {
    height: 200px !important;
    order: -1;
  }
  
  .property-title {
    font-size: 22px !important;
  }
  
  .property-features {
    gap: 8px !important;
  }
  
  .feature-badge {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
  .property-actions {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 0 4px !important; /* gentle left/right breathing room on phones */
  }
  .property-actions .read-more-btn,
  .property-actions .book-now-btn,
  .property-actions .share-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
  }
}

@media (max-width: 480px) {
  .card-row {
    margin: 0 4px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }
  
  .row-media {
    height: 180px !important;
    border-radius: 8px !important;
  }
  
  .property-title {
    font-size: 20px !important;
  }
  
  .property-features {
    gap: 6px !important;
  }
  
  .feature-badge {
    font-size: 11px !important;
    padding: 3px 6px !important;
  }
}

/* Footer Responsive Styles */
.site-footer {
  background: #83142c !important;
  color: #cbd5e1 !important;
  margin-top: 40px !important;
}

.footer-grid {
  padding: 28px 16px !important;
  display: grid !important;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr !important;
  gap: 24px !important;
}

.footer-section h4 {
  margin: 0 0 10px 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  gap: 6px !important;
}

.footer-links a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff !important;
}

.footer-newsletter form {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

.footer-newsletter input {
  flex: 1 !important;
  background: #fff !important;
  border: 1px solid #334155 !important;
  color: #1f2937 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
}

.footer-newsletter button {
  background: #e11d48 !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease;
}

.footer-newsletter button:hover {
  background: #be185d !important;
}

.footer-social {
  margin-top: 12px !important;
  display: flex !important;
  gap: 10px !important;
}

.footer-social a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #fff !important;
}

.footer-bottom {
  padding: 12px 16px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* Footer Tablet Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 20px !important;
    padding: 24px 16px !important;
  }
  
  .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
    margin-bottom: 10px !important;
  }
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding: 20px 16px !important;
  }
  
  .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }
  
  .footer-newsletter form {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .footer-newsletter button {
    width: 100% !important;
  }
  
  .footer-social {
    justify-content: center !important;
  }
  
  .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 16px 12px !important;
  }
  
  .footer-grid > div:first-child {
    grid-column: 1 !important;
  }
  
  .footer-section h4 {
    font-size: 14px !important;
  }
  
  .footer-bottom {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
} 

/* Banner and Search Responsive Styles */
.hero-simple {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  position: relative;
}

.hero-simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-simple > * {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

.page-hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-search {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0;
}

.search-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 24px;
  background-color: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.search-input {
  flex: 1 1 auto;
  min-width: 260px;
  height: 44px;
  padding: 0 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #7A1B2C;
  box-shadow: 0 0 0 3px rgba(122, 27, 44, 0.1);
}

.price-inputs {
  display: flex;
  gap: 10px;
}

.price-input {
  width: 130px;
  min-width: 110px;
  height: 44px;
  padding: 0 10px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-input:focus {
  outline: none;
  border-color: #7A1B2C;
  box-shadow: 0 0 0 3px rgba(122, 27, 44, 0.1);
}

.search-button {
  flex: 0 0 auto;
  height: 44px;
  padding: 5px 20px;
  background: #7A1B2C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-button:hover {
  background: #5d1421;
  transform: translateY(-1px);
}

.search-button:active {
  transform: translateY(0);
}

/* Navigation Improvements */
.app-navbar-inner {
  position: relative;
}

.nav-toggle {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
}

/* Banner Tablet Responsive */
@media (max-width: 1024px) {
  .hero-simple {
    min-height: 280px;
    padding: 40px 0;
    background-attachment: scroll;
  }
  
  .page-hero-title {
    font-size: 2.5rem;
  }
  
  .page-hero-sub {
    font-size: 1.1rem;
  }
  
  .search-bar {
    gap: 16px;
    padding: 8px 20px;
  }
  
  .search-input {
    min-width: 200px;
  }
  
  .price-input {
    width: 110px;
    min-width: 90px;
  }
}

/* Banner Mobile Responsive */
@media (max-width: 768px) {
  .hero-simple {
    min-height: 240px;
    padding: 30px 0;
  }
  
  .page-hero-title {
    font-size: 2rem;
  }
  
  .page-hero-sub {
    font-size: 1rem;
  }
  
  .banner-search {
    margin: 15px auto 0;
    padding: 0 16px;
  }
  
  .search-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
  }
  
  .search-input {
    width: 100%;
    min-width: auto;
    order: 1;
  }
  
  .price-inputs {
    width: 100%;
    order: 2;
  }
  
  .price-input {
    flex: 1;
    width: auto;
    min-width: auto;
  }
  
  .search-button {
    width: 100%;
    order: 3;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  /* Navigation mobile fixes */
  .nav-toggle {
    right: 1rem !important;
  }
  
  .nav-links {
    right: 0 !important;
    left: auto !important;
    width: 250px !important;
    text-align: right !important;
    transform: translateX(100%) !important;
  }
  
  .nav-links.open {
    transform: translateX(0) !important;
  }
  
  .nav-link {
    text-align: right !important;
    padding: 12px 16px !important;
  }
}

@media (max-width: 480px) {
  .hero-simple {
    min-height: 200px;
    padding: 20px 0;
  }
  
  .page-hero-title {
    font-size: 1.75rem;
  }
  
  .page-hero-sub {
    font-size: 0.9rem;
  }
  
  .banner-search {
    margin: 10px auto 0;
    padding: 0 12px;
  }
  
  .search-bar {
    padding: 12px;
    gap: 10px;
  }
  
  .search-input, .price-input, .search-button {
    height: 40px;
    font-size: 14px;
  }
  
  .search-button {
    padding: 10px 16px;
  }
  
  /* Navigation extra small mobile */
  .nav-toggle {
    right: 0.75rem !important;
  }
  
  .nav-links {
    width: 200px !important;
  }
} 

/* Admin Panel Responsive */
.admin-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  min-height: calc(100vh - 120px);
  background: #f6f8fa;
}
.admin-sidebar {
  width: 240px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 26px #e6e2ef26;
  padding: 34px 18px 32px 20px;
  font-size: 1.08rem;
  margin-top: 30px;
  margin-bottom: 30px;
  position: sticky;
  top: 86px;
  min-width:200px;
}
.admin-sidebar h3 {
  margin-top: 0;
  color: #7A1B2C;
  font-size: 1.21rem;
  letter-spacing: .5px;
  font-weight: 700;
  margin-bottom: 28px;
  border-left: 6px solid #7A1B2C;
  padding-left: 18px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.admin-sidebar nav a {
  color: #151435;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  padding: 7px 14px;
  background: rgba(122,27,44,0.07);
  transition: background 0.12s, color 0.14s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #7A1B2C, #ae2341);
}
.admin-sidebar nav a:last-child {
  color: #951e2e;
  background: rgba(220,38,38,0.09);
  font-weight: 700;
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
    gap: 0;
    padding:0;
  }
  .admin-sidebar {
    position: static;
    width: 100%;
    min-width:0;
    max-width:100vw;
    margin: 0 0 16px 0;
    border-radius: 14px;
    padding: 20px 10px 16px 13px;
    top: unset;
    box-shadow: 0 2px 9px #e6e2ef15;
  }
  .admin-sidebar h3 {
    margin-bottom: 18px;
    font-size: 1.09rem;
    padding-left: 10px;
    border-left-width: 4px;
  }
}

@media (max-width: 600px) {
  .admin-layout {
    min-height: unset;
    background: #faf9fa;
  }
  .admin-sidebar {
    padding: 13px 5px 10px 8px;
    border-radius: 10px;
    font-size: 0.98rem;
  }
  .admin-sidebar nav a {
    font-size: 1rem;
    padding: 8px 6px;
  }
}

.admin-main-content {
  flex: 1;
  min-width: 0;
  margin-top: 30px;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 26px #e6e2ef13;
  padding: 38px 32px;
}
@media (max-width:900px) {
  .admin-main-content {
    border-radius: 14px;
    margin: 0 0 24px 0;
    padding: 18px 8px;
    box-shadow: 0 2px 9px #e6e2ef13;
  }
} 