:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f1724;
  --muted: #6b7280;
  --accent: #ff5a5f;
  --accent-2: #007a87;
  --border: #e6eef3;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 1rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-link {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.hero,
.property-header {
  background-image: url("images/banner/hero-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.hero-content,
.property-hero {
  padding: 3.5rem 2rem 4.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: white;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

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

.property-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 2.25rem;
}

.property-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #fbfeff);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
}

.property-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.property-card p {
  margin: 0.4rem 0;
}

.property-card-image {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
}

.property-card .button {
  margin-top: 1.25rem;
}

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

.card,
.widget-card,
.approval-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.approval-panel {
  border-color: rgba(44, 110, 73, 0.15);
}

.approval-step {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--surface);
}

.approval-message {
  margin: 0.5rem 0 0;
  color: #334155;
  line-height: 1.5;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.property-hero {
  max-width: 960px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  color: var(--surface);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.approval-highlight {
  outline: 3px dashed rgba(76, 175, 80, 0.8);
  outline-offset: 6px;
  background: rgba(76, 175, 80, 0.08);
}

.property-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.6fr 1fr;
}

@media (max-width: 768px) {
  .property-layout {
    grid-template-columns: 1fr;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 420px;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(2,6,23,0.12);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.hero-highlights li {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.property-subtitle,
.property-summary {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.property-details h2 {
  margin-top: 2rem;
}

/* Truncated description with read-more toggle */
#property-description.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#property-description.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.read-more-btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.property-details ul {
  list-style: disc inside;
  margin: 1rem 0 0;
  padding: 0;
}

.property-gallery {
  margin-top: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-item img {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 180ms ease;
}
.gallery-item img:hover {
  transform: scale(1.02);
}

/* Iframe booking widget wrapper and loading state */
.iframe-wrapper {
  position: relative;
}
.iframe-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
  backdrop-filter: blur(4px);
  z-index: 30;
  padding: 1rem;
  text-align: center;
}
.iframe-loading-overlay.hidden {
  display: none;
}
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(15,23,42,0.12);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.booking-fallback {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}
.booking-fallback.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.contact-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg,#f8fbf7,#f6fcfb);
}

.contact-panel h3 {
  margin-top: 0;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.78);
  z-index: 60;
  padding: 2rem;
}

.gallery-lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: min(100%, 980px);
  max-height: 90vh;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(2,6,23,0.3);
  display: grid;
  gap: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 1.75rem;
  cursor: pointer;
}

.lightbox-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 16px;
}

.lightbox-title {
  margin: 0;
  font-size: 0.95rem;
  color: #334155;
}

.lightbox-controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-controls .button,
.lightbox-controls .secondary-button {
  width: 100%;
}

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

.property-actions .button {
  display: inline-block;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
