/* ============================================================
   Consumer homepage — matches app HomePage (Agoda-style)
   ============================================================ */
:root {
  --agoda-blue: #2067da;
  --agoda-blue-dark: #0b2d6e;
  --text: #1a1a1a;
  --muted: #666;
  --border: #ccc;
  --border-soft: #e0e0e0;
  --bg-soft: #f7f9fc;
  --page-bg: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page-app-home {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Header ────────────────────────────────────────────────
   Agoda / app.therajunction.com pattern:
   - full-width white bar
   - logo flush left (small side padding only)
   - logo + primary nav grouped on the left
   - auth actions on the right
   Do NOT center the bar in a narrow max-width (that pushes the logo inward).
*/
.ah-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.ah-header-inner {
  height: 60px;
  width: 100%;
  max-width: 1600px; /* same cap as app Layout */
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 640px) {
  .ah-header-inner {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .ah-header-inner {
    padding: 0 32px; /* ≈ app Layout lg:px-8 */
  }
}

/* Logo + nav sit together on the left (Agoda / app pattern) */
.ah-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.ah-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.ah-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--agoda-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ah-nav {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 768px) {
  .ah-nav {
    display: flex;
  }
}

.ah-nav a {
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  transition: color 0.15s, border-color 0.15s;
}

.ah-nav a:hover {
  color: var(--agoda-blue);
}

.ah-nav a.is-active {
  color: var(--agoda-blue);
  border-bottom-color: var(--agoda-blue);
}

.ah-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.ah-btn--outline {
  color: var(--agoda-blue);
  border-color: var(--agoda-blue);
  background: #fff;
}

.ah-btn--outline:hover {
  background: #f0f6ff;
}

.ah-btn--solid {
  color: #fff;
  background: var(--agoda-blue);
}

.ah-btn--solid:hover {
  opacity: 0.92;
}

.ah-btn--ghost-white {
  color: #fff;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.15);
}

.ah-btn--ghost-white:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ah-btn--lg {
  height: 44px;
  padding: 0 28px;
}

.ah-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.ah-burger span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 1px;
}

@media (min-width: 768px) {
  .ah-burger {
    display: none;
  }
  .ah-btn--sign-in {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .ah-btn--sign-in {
    display: none;
  }
}

.ah-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid #eee;
  background: #fff;
  gap: 4px;
}

.ah-mobile.is-open {
  display: flex;
}

.ah-mobile a {
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #f3f3f3;
}

.ah-mobile a:last-child {
  border-bottom: 0;
  margin-top: 8px;
}

/* ── Hero ────────────────────────────────────────────────── */
.ah-hero {
  position: relative;
}

.ah-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ah-hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.12) 40%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

.ah-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

@media (min-width: 640px) {
  .ah-hero-inner {
    padding: 56px 16px 80px;
  }
}

.ah-hero-title {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .ah-hero-title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .ah-hero-title {
    font-size: 44px;
  }
}

.ah-hero-sub {
  margin: 12px auto 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  max-width: 36rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .ah-hero-sub {
    font-size: 16px;
  }
}

/* Search card */
.ah-search-card {
  position: relative;
  z-index: 30;
  margin-top: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .ah-search-card {
    margin-top: 40px;
  }
}

.ah-mode-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0 8px;
  border-radius: 8px 8px 0 0;
}

.ah-mode-tab {
  position: relative;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
}

@media (min-width: 640px) {
  .ah-mode-tab {
    padding: 14px 20px;
    font-size: 14px;
  }
}

.ah-mode-tab:hover {
  color: var(--text);
}

.ah-mode-tab.is-active {
  color: var(--agoda-blue);
}

.ah-mode-tab-underline {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--agoda-blue);
  display: none;
}

.ah-mode-tab.is-active .ah-mode-tab-underline {
  display: block;
}

.ah-mode-tab i {
  margin-right: 6px;
}

.ah-search-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow: visible;
}

@media (min-width: 1024px) {
  .ah-search-form {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 16px;
  }
}

.ah-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: text;
  position: relative;
}

.ah-field:hover,
.ah-field:focus-within {
  border-color: var(--agoda-blue);
}

/* Mobile / stacked: equal full-width rows */
.ah-field--first,
.ah-field--mid,
.ah-field--age {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 1024px) {
  .ah-field {
    border-radius: 0;
    border-right-width: 0;
  }
  /* City / keyword — primary field, takes remaining space */
  .ah-field--first {
    flex: 1 1 0;
    min-width: 220px;
    border-radius: 6px 0 0 6px;
  }
  .ah-field--mid {
    flex: 0.9 1 0;
    min-width: 0;
  }
  .ah-field--age {
    width: 150px;
    flex: 0 0 150px;
    position: relative;
    cursor: pointer;
  }
}

.ah-field-icon {
  color: #888;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.ah-field-body {
  flex: 1;
  min-width: 0;
}

.ah-field-label {
  display: block;
  font-size: 11px;
  color: #666;
  line-height: 1;
  margin-bottom: 4px;
}

.ah-field-input {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

.ah-field-input::placeholder {
  color: #999;
  font-weight: 400;
}

.ah-field-select-wrap {
  position: relative;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  flex: 1 1 auto;
}

.ah-field-select-wrap:hover {
  border-color: var(--agoda-blue);
}

.ah-field-select-wrap--specialty {
  /* mobile: full width like other fields */
  flex: 1 1 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .ah-field-select-wrap {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    border-radius: 0;
    border-right-width: 0;
  }
  /* Specialty: compact fixed width so city/keyword keeps the room */
  .ah-field-select-wrap--specialty {
    flex: 0 0 148px;
    width: 148px;
    min-width: 148px;
    max-width: 148px;
  }
  .ah-field-select-wrap--grow {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
  }
}

/* Hide br helper on small screens for hero title */
.ah-br-sm {
  display: none;
}

@media (min-width: 640px) {
  .ah-br-sm {
    display: block;
  }
}

.ah-field-select-wrap .ah-field-label {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 1;
  pointer-events: none;
  margin: 0;
}

.ah-field-select {
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  padding: 20px 32px 8px 14px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  appearance: none;
  cursor: pointer;
  outline: none;
  border-radius: 6px;
  /* Prevent long option labels from expanding the fixed-width specialty field */
  text-overflow: ellipsis;
}

.ah-field-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  font-size: 12px;
}

.ah-search-submit {
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 6px;
  background: var(--agoda-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.ah-search-submit:hover {
  opacity: 0.95;
}

@media (min-width: 1024px) {
  .ah-search-submit {
    border-radius: 0 6px 6px 0;
    padding: 0 40px;
  }
}

.ah-search-submit i {
  margin-right: 6px;
}

/* Teletherapy state field (hidden by default) */
.ah-state-field {
  display: none;
}

.ah-search-card.is-teletherapy .ah-location-field {
  display: none;
}

.ah-search-card.is-teletherapy .ah-state-field {
  display: flex;
}

@media (min-width: 1024px) {
  .ah-search-card.is-teletherapy .ah-state-field {
    flex: 1.15 1 0;
  }
}

.ah-trust {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.ah-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
  text-decoration: none;
}

a.ah-trust-chip:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

#by-location,
#by-specialty {
  scroll-margin-top: 80px;
}

/* ── Sections ────────────────────────────────────────────── */
.ah-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px;
}

@media (min-width: 640px) {
  .ah-section {
    padding: 48px 16px;
  }
}

.ah-section--alt {
  border-top: 1px solid #eee;
  background: var(--bg-soft);
  max-width: none;
  padding: 0;
}

.ah-section--alt > .ah-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px;
}

@media (min-width: 640px) {
  .ah-section--alt > .ah-section-inner {
    padding: 48px 16px;
  }
}

.ah-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ah-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .ah-section-head h2 {
    font-size: 22px;
  }
}

.ah-section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.ah-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--agoda-blue);
  flex-shrink: 0;
}

.ah-link:hover {
  text-decoration: underline;
}

.ah-link i {
  font-size: 11px;
  margin-left: 4px;
}

/* Photo cards */
.ah-grid {
  display: grid;
  gap: 12px;
}

.ah-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .ah-grid--4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .ah-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ah-card {
  text-align: left;
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  padding: 0;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.ah-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(32, 103, 218, 0.4);
}

.ah-card-img {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #e8eef5;
}

@media (min-width: 640px) {
  .ah-card-img {
    height: 140px;
  }
}

.ah-card-img--sm {
  height: 110px;
}

.ah-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.ah-card:hover .ah-card-img img {
  transform: scale(1.05);
}

.ah-card-img-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
}

.ah-card-badge {
  position: absolute;
  bottom: 8px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ah-card-badge--top {
  top: 8px;
  bottom: auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  text-shadow: none;
}

.ah-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ah-card-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.ah-card:hover .ah-card-body h3 {
  color: var(--agoda-blue);
}

.ah-card-body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.ah-card-cta {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--agoda-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ah-card--dest {
  position: relative;
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ah-card--dest:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  border-color: transparent;
}

.ah-card--dest .ah-card-img {
  height: 180px;
}

@media (min-width: 640px) {
  .ah-card--dest .ah-card-img {
    height: 200px;
  }
}

.ah-card--dest .ah-card-img-scrim {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    transparent 70%
  );
}

.ah-card--dest .ah-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 14px;
  background: transparent;
}

.ah-card--dest .ah-card-body h3 {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.ah-card--dest:hover .ah-card-body h3 {
  color: #fff;
}

.ah-card--dest .ah-card-body p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  margin-top: 4px;
}

.ah-city-index {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .ah-city-index {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }
}

@media (min-width: 1024px) {
  .ah-city-index {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ah-city-index-state h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.ah-city-index-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.ah-city-index-links a {
  font-size: 13px;
  color: var(--agoda-blue);
  font-weight: 500;
}

.ah-city-index-links a:hover {
  text-decoration: underline;
}

/* CTA band */
.ah-cta {
  position: relative;
  border-top: 1px solid #eee;
  overflow: hidden;
}

.ah-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ah-cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 20, 48, 0.82) 0%,
    rgba(11, 45, 110, 0.88) 50%,
    rgba(8, 20, 48, 0.9) 100%
  );
}

.ah-cta-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 16px 64px;
  text-align: center;
}

.ah-cta-panel {
  margin: 0 auto;
  max-width: 32rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 32px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .ah-cta-panel {
    padding: 36px 40px;
  }
}

.ah-cta-panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .ah-cta-panel h2 {
    font-size: 26px;
  }
}

.ah-cta-panel p {
  margin: 12px auto 28px;
  font-size: 14px;
  color: #fff;
  line-height: 1.55;
  max-width: 28rem;
}

@media (min-width: 640px) {
  .ah-cta-panel p {
    font-size: 15px;
  }
}

.ah-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.ah-footer {
  border-top: 1px solid var(--border-soft);
  background: #fff;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

.ah-footer a {
  color: var(--agoda-blue);
  font-weight: 600;
}

.ah-footer a:hover {
  text-decoration: underline;
}

.ah-footer-sep {
  margin: 0 8px;
  color: #ccc;
}

.ah-footer a.ah-footer-muted {
  color: #888;
  font-weight: 500;
}

.ah-footer a.ah-footer-muted:hover {
  color: var(--agoda-blue);
}
