:root {
  color-scheme: dark;
  color: #f7f7f7;
  background: #0d1116;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 40%), #05070b;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(7, 12, 18, 0.86);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.94rem;
}

.main-nav a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.solid {
  background: #ffffff;
  color: #0f141d;
}

.button.outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

.hero {
  position: relative;
  min-height: 76vh;
  padding: 4rem 2rem 3rem;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(9,14,21,0.88), rgba(9,14,21,0.24)), url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 100%);
  pointer-events: none;
}

.hero-copy {
  max-width: 720px;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #9aa6b8;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 42rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-panel {
  padding: 3rem 2rem;
  background: rgba(10,16,24,0.88);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

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

.search-content h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.search-content p {
  margin: 0 0 1.6rem;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  max-width: 820px;
  margin: 0 auto;
}

.search-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.05);
  color: #f7f7f7;
  font-size: 1rem;
}

.search-form input::placeholder {
  color: rgba(255,255,255,0.52);
}

.search-form button {
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #0f141d;
  font-weight: 700;
  cursor: pointer;
}

.section-block {
  padding: 3rem 2rem;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.property-grid {
  display: grid;
  gap: 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.property-card {
  overflow: hidden;
  border-radius: 1.4rem;
  background: rgba(8, 14, 22, 0.96);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 70px rgba(0,0,0,0.18);
}

.property-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.property-content {
  padding: 1.35rem 1.35rem 1.5rem;
}

.property-card .tag {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #d7dfe8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.property-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
}

.property-card p {
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

.feature-row {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  padding: 1.8rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p {
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}

.search-results {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  color: #eef2f6;
}

.search-results p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.search-result-item {
  padding: 1.35rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
}

.service-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  padding: 2rem;
  border-radius: 1.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.about-panel {
  background: rgba(255,255,255,0.04);
  margin-top: 2rem;
  border-radius: 1.8rem;
  padding: 3rem 2rem;
}

.about-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.about-copy h2 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.site-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.96);
}

  .auth-page {
    min-height: calc(100vh - 92px);
    display: grid;
    place-items: center;
    padding: 3rem 2rem;
  }

  .auth-card {
    width: min(100%, 520px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.6rem;
    padding: 2.5rem;
    box-shadow: 0 38px 90px rgba(0,0,0,0.18);
  }

  .auth-card h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 3vw, 2.6rem);
  }

  .auth-card p {
    margin: 0;
    color: rgba(255,255,255,0.78);
  }

  .auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
  }

  .form-field {
    display: grid;
    gap: 0.5rem;
  }

  .form-field label {
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
  }

  .form-field small {
    color: rgba(255,255,255,0.56);
    font-size: 0.85rem;
  }

  .form-field input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 0.95rem;
    background: rgba(255,255,255,0.04);
    color: #f6f8fb;
    padding: 0.95rem 1rem;
    font-size: 1rem;
  }

  .form-field input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.34);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  }

  .form-field textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 0.95rem;
    background: rgba(255,255,255,0.04);
    color: #f6f8fb;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    min-height: 100px;
    resize: vertical;
  }

  .form-field textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.34);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  }

  .form-field select {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 0.95rem;
    background: rgba(255,255,255,0.04);
    color: #f6f8fb;
    padding: 0.95rem 1rem;
    font-size: 1rem;
  }

  .form-field select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.34);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  }

  .form-message {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    font-size: 0.95rem;
  }

  .form-message.info {
    background: rgba(255,255,255,0.06);
    color: #eef2f6;
  }

  .form-message.success {
    background: rgba(140, 238, 144, 0.16);
    color: #d9f8d6;
    border: 1px solid rgba(140, 238, 144, 0.3);
  }

  .form-message.error {
    background: rgba(255, 131, 131, 0.16);
    color: #ffd7d7;
    border: 1px solid rgba(255, 131, 131, 0.3);
  }

.auth-footer {
  margin-top: 1.75rem;
  color: rgba(255,255,255,0.72);
}

.auth-footer a {
  color: #ffffff;
  text-decoration: underline;
}

.user-label {
  color: rgba(255,255,255,0.86);
  font-weight: 600;
}

.admin-main {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.8rem;
  padding: 2rem;
  margin-bottom: 1.8rem;
}

.admin-section h2 {
  margin-top: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.admin-section p {
  color: rgba(255,255,255,0.78);
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.admin-controls .button {
  min-width: auto;
}

.settings-grid,
.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.admin-table th {
  color: rgba(255,255,255,0.84);
  font-weight: 700;
}

.admin-table td {
  color: rgba(255,255,255,0.78);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table button {
  border: none;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.admin-table .button-small {
  min-width: 92px;
}

.toggle-button {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.remove-button {
  background: rgba(255, 70, 80, 0.18);
  color: #ffb2b2;
}

.visible {
  display: block !important;
}

.hidden {
  display: none !important;
}

/* Listings Page Styles */
.listings-main {
  padding: 0;
  min-height: calc(100vh - 92px);
}

.listings-hero {
  background: linear-gradient(135deg, rgba(40, 80, 140, 0.3), rgba(100, 50, 150, 0.2)), rgba(15, 20, 30, 0.8);
  padding: 5rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.listings-hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.listings-hero-content p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
}

.listings-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  font-weight: 600;
}

.filter-group input,
.filter-group select {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.04);
  color: #f6f8fb;
  font-size: 0.95rem;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.listings-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

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

.property-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.16);
}

.property-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}

.property-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.property-location {
  margin: 0 0 0.3rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.property-type {
  margin: 0 0 0.8rem;
  padding: 0.4rem 0.8rem;
  display: inline-block;
  background: rgba(100, 150, 200, 0.2);
  border: 1px solid rgba(100, 150, 200, 0.3);
  border-radius: 0.6rem;
  color: #a8d5ff;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.property-description {
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.property-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.property-availability {
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.property-availability.sale {
  background: rgba(100, 200, 120, 0.2);
  color: #84d896;
  border: 1px solid rgba(100, 200, 120, 0.3);
}

.property-availability.rent {
  background: rgba(255, 180, 100, 0.2);
  color: #ffc080;
  border: 1px solid rgba(255, 180, 100, 0.3);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

.no-results a {
  color: #ffffff;
  text-decoration: underline;
}

.listing-detail-main {
  padding: 0;
  min-height: calc(100vh - 92px);
}

.listing-detail-hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-detail-content {
  max-width: 1200px;
  margin: 0 auto;
}

.listing-detail-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  padding: 3rem 2rem;
}

.listing-detail-main h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #ffffff;
}

.listing-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  color: rgba(255,255,255,0.56);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.meta-value {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.listing-description {
  margin-bottom: 2rem;
}

.listing-description h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.listing-description p {
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

.listing-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.price-card,
.availability-card,
.info-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.2rem;
  padding: 1.8rem;
}

.price-card {
  background: rgba(100, 200, 120, 0.1);
  border-color: rgba(100, 200, 120, 0.2);
}

.price-label {
  margin: 0 0 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-amount {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: #84d896;
}

.availability-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.availability-label {
  margin: 0 0 0.5rem;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.availability-label.sale {
  background: rgba(100, 200, 120, 0.2);
  color: #84d896;
  border: 1px solid rgba(100, 200, 120, 0.3);
}

.availability-label.rent {
  background: rgba(255, 180, 100, 0.2);
  color: #ffc080;
  border: 1px solid rgba(255, 180, 100, 0.3);
}

.availability-desc {
  margin: 0.8rem 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.info-card h3 {
  margin: 0 0 1.2rem;
  color: #ffffff;
  font-size: 1.1rem;
}

.info-card p {
  margin: 0.8rem 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.info-card strong {
  color: rgba(255,255,255,0.9);
}

.table-responsive {
  overflow-x: auto;
}

@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .admin-controls {
    flex-direction: column;
    align-items: stretch;
  }

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

  .property-grid {
    grid-template-columns: 1fr;
  }

  .listing-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .listing-detail-sidebar {
    position: static;
  }

  .listing-meta {
    grid-template-columns: 1fr;
  }

  .listing-detail-hero {
    max-height: 300px;
  }

  .price-amount {
    font-size: 2rem;
  }
}

