:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --nav: #0f2143;
  --nav-text: #f7f9ff;
  --primary: #1d6ce1;
  --primary-dark: #1254b2;
  --secondary: #4a6a92;
  --text: #1f2a3a;
  --muted: #5f728f;
  --border: #d8e1ec;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

.navbar {
  background: var(--nav) !important;
  box-shadow: 0 18px 50px rgba(15, 33, 71, 0.12);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--nav-text) !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d2ff;
  margin-right: 0.4rem;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.18));
}

.hero {
  background: linear-gradient(135deg, #274d83, #15284a);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 32%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto;
}

.hero p {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 1.8rem auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.card {
  border: none;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(15, 33, 71, 0.08);
}

.property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(15, 33, 71, 0.14);
}

.property-card img {
  object-fit: cover;
  width: 100%;
  height: 220px;
}

.property-card .card-body {
  flex: 1;
}

.card-body h5 {
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card-body p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.property-photo {
  height: 220px;
  overflow: hidden;
  border-radius: 18px;
}

.property-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#propertyDetail {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15, 33, 71, 0.08);
}

#propertyDetail h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.property-detail-header {
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem;
}

.property-detail-header .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

.property-price {
  text-align: right;
}

.property-price .price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.property-section {
  padding-top: 1.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(15, 33, 71, 0.08);
}

.property-section:last-child {
  border-bottom: none;
}

#propertyDetail h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #13264a;
}

#propertyDetail p,
#propertyDetail iframe {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

#propertyDetail .property-section p {
  margin-bottom: 0;
  color: var(--text);
}

#propertyDetail .property-section .text-muted {
  color: var(--muted) !important;
}

#propertyDetail .row {
  row-gap: 1.5rem;
}

.property-document {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fbff;
}

.property-document .document-name {
  font-weight: 700;
  color: var(--text);
}

.property-document .document-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.home-contact-card {
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 14px 34px rgba(15, 33, 71, 0.08);
  padding: 1.1rem 1.2rem;
}

.home-contact-list {
  display: grid;
  gap: 0.55rem;
}

.home-contact-item {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.home-contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.home-contact-item div {
  color: var(--muted);
  font-size: 0.95rem;
}

.property-contact-list {
  display: grid;
  gap: 1rem;
}

.property-contact-item {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fbff;
}

.property-contact-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.property-contact-item div {
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 18px;
  }
  .property-photo {
    height: 180px;
  }
}

.property-photo {
  height: 220px;
  overflow: hidden;
}

.property-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
