/* ============================================================
   ORA THAI SPA — LOCATIONS & CONTACT PAGE STYLES
   ============================================================ */

/* ======================== NAVBAR SOLID (for sub-pages) ======================== */
.navbar-solid {
  background: rgba(30,22,14,.95) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 4px 24px rgba(0,0,0,.18), 0 1px 0 rgba(196,162,101,.12) inset;
  padding: 10px 0;
}

/* ======================== PAGE HERO ======================== */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #5a4a3a 0%, #3d3024 40%, #2C2C2C 100%);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a265' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(44,44,44,.4) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-content .tag-light {
  color: var(--gold-light);
}

.page-hero-title {
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 6px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.5);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

.page-hero-compact {
  padding: 140px 0 60px;
}

/* ======================== LOCATION CARDS ======================== */
.loc-section {
  padding-top: 80px;
  padding-bottom: 40px;
}

.loc-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
  transition: box-shadow var(--transition);
}

.loc-card:hover {
  box-shadow: var(--shadow-lg);
}

.loc-card-reverse {
  direction: rtl;
}

.loc-card-reverse > * {
  direction: ltr;
}

.loc-card-map {
  min-height: 400px;
  background: var(--cream);
}

.loc-card-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.loc-card-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loc-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(196,162,101,.12);
  color: var(--gold);
  border: 1px solid rgba(196,162,101,.25);
  margin-bottom: 16px;
  width: fit-content;
}

.loc-badge-new {
  background: rgba(22,163,74,.08);
  color: #16a34a;
  border-color: rgba(22,163,74,.2);
}

.loc-card-info h2 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.loc-card-info h3 {
  font-size: .88rem;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.loc-tagline {
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 24px;
}

.loc-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.loc-detail-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.loc-detail-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(196,162,101,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.loc-detail-icon svg {
  width: 16px;
  height: 16px;
}

.loc-detail-item strong {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.loc-detail-item p {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.loc-detail-item a {
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.loc-detail-item a:hover {
  color: var(--brown);
}

.loc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 10px 18px;
  font-size: .72rem;
}

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
  border-color: var(--green-wa);
}

.btn-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.25);
}

/* ======================== FULL MAP SECTION ======================== */
.loc-full-map {
  position: relative;
}

.loc-map-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
  background: var(--charcoal);
}

.loc-map-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.loc-map-tab:hover {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.25);
}

.loc-map-tab.active {
  color: var(--charcoal);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.loc-map-tab svg {
  width: 14px;
  height: 14px;
}

.loc-map-container {
  height: 380px;
}

.loc-map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ======================== CONTACT PAGE ======================== */
.contact-page-section {
  background: var(--cream-light);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-locations-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Location Tabs on Contact Page */
.contact-loc-tabs {
  display: flex;
  gap: 8px;
}

.contact-loc-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-loc-tab:hover {
  border-color: var(--gold);
  color: var(--charcoal);
}

.contact-loc-tab.active {
  background: var(--charcoal);
  color: var(--gold-light);
  border-color: var(--charcoal);
}

.contact-loc-tab svg {
  width: 14px;
  height: 14px;
}

/* Location Info Panels */
.contact-loc-info {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn .4s ease;
}

.contact-loc-info.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-loc-map {
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.contact-loc-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.contact-loc-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-loc-details h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 1px;
}

.contact-loc-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* Contact Form Wrapper */
.contact-form-wrap {
  position: sticky;
  top: 100px;
}

.contact-form-header {
  margin-bottom: 24px;
}

.contact-form-header h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.contact-form-header p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ======================== RESPONSIVE ======================== */

@media (max-width: 1024px) {
  .page-hero-title { font-size: 2.2rem; letter-spacing: 4px; }
  .loc-card-info { padding: 32px 28px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 130px 0 60px; }
  .page-hero-compact { padding: 120px 0 48px; }
  .page-hero-title { font-size: 1.6rem; letter-spacing: 3px; }
  .page-hero-desc { font-size: .88rem; }

  .loc-card {
    grid-template-columns: 1fr;
  }

  .loc-card-reverse {
    direction: ltr;
  }

  .loc-card-map {
    min-height: 260px;
  }

  .loc-card-info {
    padding: 28px 24px;
  }

  .loc-actions {
    flex-direction: column;
  }

  .loc-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .loc-map-tabs {
    flex-direction: column;
    gap: 6px;
    padding: 16px;
  }

  .loc-map-container { height: 280px; }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    position: static;
  }

  .contact-loc-tabs {
    flex-direction: column;
    gap: 6px;
  }

  .contact-loc-map {
    height: 180px;
  }

  .contact-loc-actions {
    flex-direction: column;
  }

  .contact-loc-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-hero { padding: 110px 0 48px; }
  .page-hero-compact { padding: 100px 0 40px; }
  .page-hero-title { font-size: 1.35rem; letter-spacing: 2px; }

  .loc-card {
    border-radius: var(--radius-lg);
  }

  .loc-card-map { min-height: 220px; }

  .loc-card-info {
    padding: 24px 16px;
  }

  .loc-card-info h2 {
    font-size: 1.05rem;
    letter-spacing: 3px;
  }

  .loc-map-container { height: 240px; }

  .contact-form-header h2 {
    font-size: 1.2rem;
  }

  .loc-actions .btn,
  .contact-loc-actions .btn {
    min-height: 44px;
  }

  .loc-map-tab,
  .contact-loc-tab {
    min-height: 44px;
  }

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

/* Touch target enforcement on coarse pointers */
@media (pointer: coarse) {
  .loc-map-tab,
  .contact-loc-tab {
    min-height: 48px;
    padding: 12px 20px;
  }

  .loc-actions .btn,
  .contact-loc-actions .btn {
    min-height: 48px;
  }
}

/* Safe area insets for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .page-hero {
    padding-top: calc(160px + env(safe-area-inset-top));
  }

  .page-hero-compact {
    padding-top: calc(140px + env(safe-area-inset-top));
  }
}
