:root {
  --primary: #8c0a0a;
  --primary-dark: #6f0a0a;
  --gold: #d4af37;
  --gold-dark: #b69023;
  --paper: #fff9f0;
  --text: #1a1a1a;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Montserrat, system-ui, Arial, sans-serif;
  background: var(--paper)
}

body {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.lightbox-open, body.nav-open {
  overflow: hidden;
}


.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px
}

.main {
  padding: 32px 0 64px;
  flex: 1 0 auto;
}

.section-sep {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 8px 0 16px
}

.section-title {
  font-family: 'Cinzel', serif;
  color: var(--primary);
  margin: 0 0 20px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  font-size: 26px;
}

.no-results {
  padding: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #eee;
  grid-column: 1 / -1;
}

.top-border {
  height: 6px;
  background: linear-gradient(90deg, var(--gold), #f6d878, var(--gold));
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}

.header {
  background: #fff;
  padding: 10px 0;
  border-bottom: 2px solid var(--gold);
  margin-top: 6px;
  top: 6px;
  z-index: 999;
}

.header__inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
  background: transparent
}

.brand {
  margin: 0;
  font-family: Cinzel, serif;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 
    0 1px 0 #5e0a0a, 
    0 2px 6px rgba(0, 0, 0, .15),
    1px 1px 2px rgba(180, 145, 145, 0.7);
  font-size: clamp(22px, 3.2vw, 40px);
}

.contact {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  font-size: 14px
}

.contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600
}

.contact a:hover {
  text-decoration: underline
}

.sep {
  opacity: .5
}

.nav {
  background: var(--primary);
  border-top: 1px solid #5e0a0a;
  z-index: 998;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.nav__list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0
}

.nav__link {
  display: block;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 3px solid transparent
}

.nav__link:hover {
  background: var(--primary-dark)
}

.nav__link.active {
  background: linear-gradient(180deg, #a20d0d, var(--primary));
  border-bottom-color: var(--gold);
  color: #fff
}

.nav__meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.nav__social a {
  display: inline-flex;
}

.nav__social img {
  height: 22px;
  width: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity .2s ease;
}

.nav__social a:hover img {
  opacity: 1;
}

.registry {
  color: #fff;
  padding: 10px 0;
  font-weight: 600
}

.nav-toggle { display: none; }

.footer {
  background: radial-gradient(1200px 400px at 50% -150px, rgba(212, 175, 55, 0.15), transparent 60%), linear-gradient(180deg, var(--primary) 0%, #2a0000 100%);
  color: #f6ece0;
  margin-top: auto;
  border-top: 2px solid var(--gold);
}

.footer__top {
  padding: 28px 16px 12px;
  text-align: center;
}

.footer__brand {
  margin: 0 0 6px;
  font-family: Cinzel, serif;
  color: var(--gold);
  font-size: clamp(15px, 2.4vw, 28px);
  text-transform: capitalize;
  text-shadow: 0 1px 0 #5e0a0a, 0 2px 6px rgba(0, 0, 0, .25);
}

.footer__reg {
  opacity: .95;
  margin-bottom: 4px
}

.footer__addr {
  opacity: .9;
  margin-bottom: 10px
}

.footer__contact {
  margin: 8px auto 10px;
  max-width: 360px;
  font-weight: 600;
}

.footer__contact ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0
}

.footer__contact li {
  margin: 2px 0;
  font-weight: 400
}

.footer__contact a {
  color: #ffe8a6;
  text-decoration: none
}

.footer__contact a:hover {
  text-decoration: underline
}

.footer__social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 14px 0 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff10;
  border: 1px solid #ffffff26;
  backdrop-filter: blur(2px);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: #ffffff1c;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25)
}

.social-btn img {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1px 0 #00000050)
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.footer__nav a {
  color: #f6ece0;
  text-decoration: none;
  font-weight: 700;
  opacity: .95;
  letter-spacing: .5px
}

.footer__nav a:hover {
  color: #fff
}

.footer__bottom {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: 8px;
}

.footer__bottom__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 10px;
  color: #f1e7d6
}

.footer__bottom__inner a {
  color: #ffe8a6;
  text-decoration: none
}

.footer__bottom__inner a:hover {
  text-decoration: underline
}

.listings-page,
.homepage {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 24px;
}

.sidebar {
  grid-column: 1;
}
.homepage .sidebar {
  top: 80px;
  align-self: start;
}

.main-content {
  grid-column: 2;
  min-width: 0
}

.search-form {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.range-group .inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.checkbox-item input {
  margin-right: 6px;
}

.checkbox-item label {
  font-size: 13px;
  margin: 0;
  font-weight: 400;
}

.form-buttons {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}

.btn-search,
.btn-reset {
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

.btn-search:hover {
  background: var(--primary-dark);
}

.btn-reset {
  background: #eee;
  color: #333;
}

.btn-reset:hover {
  background: #ddd;
}

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

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

.property-card {
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-image {
  position: relative;
  height: 180px;
}

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

.card-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 5;
}

.sold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.sold-overlay span {
  color: white;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  border: 3px solid var(--primary);
  padding: 10px 25px;
  text-align: center;
}

.card-price-banner {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: right;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  z-index: 6;
}

.card-price-banner .price-main {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.card-price-banner .price-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 3px;
  padding-top: 3px;
}

.card-body {
  padding: 16px;
  border-top: 3px solid var(--gold);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.card-meta {
  margin-top: auto;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.highlighted-listings .slider-wrapper {
  position: relative;
  margin: 0 -5px;
}

.highlighted-listings .slider-container {
  overflow: hidden;
}

.highlighted-listings .slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.highlighted-listings .slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 5px;
}

.highlighted-listings .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlighted-listings .slider-btn.prev {
  left: -25px;
}

.highlighted-listings .slider-btn.next {
  right: -25px;
}

.highlighted-listings .slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.highlighted-listings .slider-btn.hidden {
  display: none;
}

.latest-listings {
  margin-top: 40px;
}

.view-more-link {
  text-align: center;
  margin-top: 30px;
}

.view-more-link a {
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
}

.view-more-link a:hover {
  text-decoration: underline;
}

.sort-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  align-items: center;
  gap: 8px;
}

.sort-bar label {
  font-weight: 600;
}

.sort-bar select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.pagination-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  color: #333;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  font-weight: 600;
  font-size: 0.95rem;
}

.pagination li a:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
  color: var(--primary-color);
}

.pagination li.active span {
  background-color: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
  cursor: default;
}

.pagination li.disabled span {
  color: #aaa;
  background-color: #f9f9f9;
  border-color: #eee;
  cursor: not-allowed;
}

.property-detail-page {
  max-width: 1100px;
  margin: 24px auto;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.property-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 5vw, 32px);
  margin: 0;
  color: var(--primary);
}

.gallery {
  position: relative;
  background: #f3f3f3;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.gallery .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
}

.gallery .nav.prev {
  left: 10px
}

.gallery .nav.next {
  right: 10px
}

.main-image {
  width: 100%;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 520px;
}

.thumbnail-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumbnail-strip .thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  opacity: .85;
  cursor: pointer;
  border: 2px solid transparent
}

.thumbnail-strip .thumb.active {
  opacity: 1;
  border-color: var(--gold)
}

.property-main-layout {
  display: grid;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.property-main-layout > div {
  min-width: 0;
}

.price-tag {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}

.info-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.info-grid.small { font-size: 0.95rem; }
.info-grid.small strong { color: #555; }
.info-grid div {
  padding-bottom: 8px;
  border-bottom: 1px dotted #eee;
}

.contact-agent-btn {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--text);
  text-align: center;
  padding: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s ease;
}

.contact-agent-btn:hover {
  background: var(--gold-dark);
}

.property-section {
  margin-top: 40px;
}

.property-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}
.property-section p {
  line-height: 1.6;
}

.features-grid {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 10px;
}
.features-grid li {
  padding: 6px 0;
  break-inside: avoid-column;
}

.map-embed iframe {
  display: block;
  max-width: 100%;
  width: 100%;
  border-radius: 4px;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-family: Cinzel, serif;
  color: var(--primary)
}

.hero p {
  margin: 0;
  color: #444
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.5fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
  margin-bottom: 32px;
}

.contact-info-col h3 {
  font-family: 'Cinzel', serif;
  color: var(--primary);
  margin: 0 0 24px 0;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-list .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-top: 4px;
}

.contact-info-list .info {
  display: flex;
  flex-direction: column;
}

.contact-info-list .info strong {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-info-list .info span,
.contact-info-list .info a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

.contact-info-list .info a {
  color: var(--primary);
  transition: color 0.2s ease;
}

.contact-info-list .info a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.contact-map-col {
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  min-height: 450px;
  overflow: hidden;
  border-radius: 6px;
}

.contact-map-col iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 0;
  display: block;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  z-index: 10;
}

.lightbox-controls {
  display: flex;
  gap: 0.5rem;
}

.lightbox-controls button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
}
.lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}
.lightbox-controls button svg {
  width: 100%;
  height: 100%;
}

.lightbox-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  transition: transform 0.2s ease;
  cursor: grab;
}
.lightbox-image.zoomed {
  cursor: move;
}


.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}
.lightbox-nav.lightbox-nav-prev {
  left: 1rem;
}
.lightbox-nav.lightbox-nav-next {
  right: 1rem;
}

.lightbox-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 10;
}

.lightbox-thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 1rem;
  max-width: 80vw;
}

.lightbox-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 3px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.lightbox-thumb:hover {
  opacity: 1;
}

.lightbox-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

.o-nama-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.o-nama-wrap .hero {
  text-align: center;
  padding-bottom: 0rem;
  padding-top: 0.5rem;
}

.o-nama-wrap .hero h2 {
  font-size: 28px;
  font-family: Cinzel, serif;
  color: var(--primary);
  margin: 0 0 8px;
}

.o-nama-wrap .hero p {
  margin: 0;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.6;
}

.o-nama-wrap section:not(:first-child) {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.o-nama-wrap .section-title,
.o-nama-wrap h2,
.o-nama-wrap h3 {
  text-align: center;
}

.o-nama-wrap .info-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  line-height: 1.65;
  text-align: left;
  width: 100%;
}

.o-nama-wrap .info-list li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.o-nama-wrap .info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}


.admin-body {
  background: #f4f7f6;
  font-family: system-ui, sans-serif;
  padding: 0;
}

.admin-header {
  background: #2c3e50;
  color: #fff;
  padding: 1rem 0;
  margin-top: 6px;
}

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

.admin-brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.admin-nav a {
  color: #ecf0f1;
  text-decoration: none;
  margin-left: 1.5rem;
}

.admin-nav a:hover {
  text-decoration: underline;
}

.admin-main {
  padding: 2rem 0;
}

.admin-login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #34495e;
}

.login-container {
  max-width: 400px;
  width: 100%;
  padding: 16px;
}

.login-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.login-form .form-group {
  margin-bottom: 1rem;
}

.login-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.login-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-form button {
  width: 100%;
  padding: 0.75rem;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

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

.admin-actions h2 {
  margin: 0;
}

.btn {
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary {
  background: #2980b9;
  color: #fff;
}
.btn-info {
  background: #3498db;
  color: #fff;
}
.btn-secondary {
  background: #7f8c8d;
  color: #fff;
}

.btn-danger {
  background: #c0392b;
  color: #fff;
}

.admin-table-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
  white-space: nowrap;
}

.admin-table th {
  background: #f8f9fa;
}

.admin-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.property-form .form-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.property-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.property-form .full-width {
  grid-column: 1 / -1;
}

.property-form .form-actions {
  margin-top: 1.5rem;
}

.property-form label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}
.property-form label.inline-label {
  display: flex;
  align-items: center;
  font-weight: normal;
}
.property-form label.inline-label input {
    width: auto;
    margin-right: 8px;
}


.property-form input,
.property-form select,
.property-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.property-form textarea {
  font-family: inherit;
}

.property-form .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 0;
}
.property-form .checkbox-grid label {
    display: flex;
    align-items: center;
    font-weight: normal;
}
.property-form .checkbox-grid input {
    width: auto;
    margin-right: 8px;
}


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

.image-management {
  margin-bottom: 1.5rem;
}

.current-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.img-container {
  border: 1px solid #ddd;
  padding: 0.5rem;
  border-radius: 4px;
}

.img-container img {
  max-width: 150px;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.img-controls {
  font-size: 0.9rem;
}

.img-controls div {
  display: flex;
  align-items: center;
}
.img-controls label.inline {
    margin-left: 4px;
    font-weight: normal;
}

.mobile-search-toggle-wrapper {
  display: none;
}

.mobile-social-float {
  position: fixed;
  top: 24.3%;
  right: 5px;
  transform: translateY(-50%);
  z-index: 997;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.social-btn-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform .2s ease;
  text-decoration: none;
}

.social-btn-float:hover {
  transform: scale(1.1);
}

.social-btn-float.facebook {
  background: #1877F2;
}

.social-btn-float.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}

.social-btn-float img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
  .homepage .sidebar {
    position: static;
  }
  .highlighted-listings .slide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .listings-page, .homepage {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .sidebar {
    margin-bottom: 32px;
  }

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

  .property-key-info {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .main {
    padding-top: 1rem;
  }

  .listings-page, .homepage {
    display: block;
    margin-top: 0;
  }
  
  .header {
    padding: 8px 0;
  }
  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
  }
  .header__meta {
    text-align: left;
  }
  .brand {
    font-size: clamp(18px, 5vw, 22px);
    text-shadow: 0 1px 0 #5e0a0a, 0 2px 6px rgba(0,0,0,.15);
  }
  .contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    margin-top: 4px;
    font-size: 10px;
  }
  .logo img {
    height: 60px;
  }
  
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    z-index: 1001;
  }
  .nav-toggle .hamburger {
      display: block;
      width: 24px;
      height: 2px;
      background: white;
      position: relative;
      transition: background 0.2s ease-in-out;
  }
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
      content: '';
      position: absolute;
      width: 24px;
      height: 2px;
      background: white;
      left: 0;
      transition: transform 0.2s ease-in-out;
  }
  .nav-toggle .hamburger::before { top: -7px; }
  .nav-toggle .hamburger::after { bottom: -7px; }

  body.nav-open .nav-toggle .hamburger { background: transparent; }
  body.nav-open .nav-toggle .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
  body.nav-open .nav-toggle .hamburger::after { transform: rotate(-45deg) translate(5px, -5px); }

  .nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    border: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  body.nav-open .nav {
    display: block;
  }
  
  .nav__inner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    height: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0;
  }
  
  .nav__link {
    padding: 15px 16px;
    font-size: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: var(--text);
    font-weight: 600;
  }
  .nav__link:hover {
    background: #f5f5f5;
  }
  .nav__link.active { 
    border-bottom-color: var(--gold); 
    background: none;
    color: var(--primary);
  }

  .nav__meta {
    display: none;
  }
  
  .listings-grid {
    grid-template-columns: 1fr;
  }

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

  .highlighted-listings .slider-btn.prev {
    left: 5px;
  }
  .highlighted-listings .slider-btn.next {
    right: 5px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-map-col {
    height: 350px;
    min-height: 350px;
  }
  
  .features-grid { columns: 1; }

  .mobile-search-toggle-wrapper {
    display: block;
    padding: 0 0 1rem;
  }
  .mobile-search-toggle {
    width: 100%;
    height: 50px;
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
  }
  .sidebar {
    display: none;
  }
  .sidebar.open {
    display: block;
  }
  
  .mobile-social-float {
    display: flex;
  }

  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
      display: block;
      width: 100%;
  }
  .admin-table tr {
      margin-bottom: 1rem;
      border: 1px solid #ddd;
      border-radius: 4px;
  }
  .admin-table td {
      text-align: right;
      position: relative;
      padding-left: 50%;
      white-space: normal;
  }
  .admin-table td::before {
      content: attr(data-label);
      position: absolute;
      left: 1rem;
      width: 45%;
      padding-right: 10px;
      text-align: left;
      font-weight: bold;
  }
  .admin-table td.actions {
      text-align: left;
      padding-left: 1rem;
  }
  .admin-table td.actions::before { display: none; }

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

  .highlighted-listings .slider-btn {
    display: flex !important;
  }

  .o-nama-wrap {
      text-align: left;
  }
  .o-nama-wrap .info-list {
      display: block;
  }
  .o-nama-wrap .hero h2 {
      font-size: 26px;
  }
  .o-nama-wrap .hero p {
      font-size: 1rem;
  }
}