/* Achsanya – shared styles. Colours and fonts from the agreed design. */
:root {
  --teal: #0E6A6F; --teal-dark: #0A4F53; --teal-pale: #E3F1F1;
  --navy: #16202E; --grey-bg: #F5F6F8; --line: #E3E6EB; --line-strong: #C9CFD8;
  --muted: #5B6472; --muted-dark: #4A5260;
  --gold: #A8742A; --gold-text: #8A5E1F; --gold-light: #E2B866;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--grey-bg); color: var(--navy); font-family: Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo svg { flex: none; }
.wordmark { font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; line-height: 1; white-space: nowrap; }
.wordmark .flame { display: inline-block; width: 6px; height: 8px; margin: 0 1px; vertical-align: baseline; }
.wordmark .com { color: var(--gold); }
.wordmark-he { font-family: 'Suez One', serif; font-size: 26px; line-height: 1; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.pill { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--navy); font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }
.pill:hover { color: var(--navy); border-color: var(--line-strong); }
.pill-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill-dark:hover { color: #fff; }
.hide-small { display: none; }
@media (min-width: 640px) { .hide-small { display: inline-flex; } }

/* Hero */
.hero { padding: 36px 0 26px; text-align: center; }
.hero h1 { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 44px; line-height: 1.02; letter-spacing: .5px; }
.hero h1 .line2 { display: block; }
@media (min-width: 640px) { .hero h1 { font-size: 60px; } .hero h1 .line2 { display: inline; } .hero { padding: 64px 0 36px; } }
.subtitle { margin-top: 12px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 2.5px; color: var(--gold-text); }
.subtitle::before, .subtitle::after { content: ''; width: 22px; height: 1.5px; background: var(--gold); }
.he .hero h1 { font-family: 'Suez One', serif; line-height: 1.15; letter-spacing: 0; }
.he .subtitle { letter-spacing: 0; font-size: 16px; }

/* Countries and cities */
.choose { display: flex; flex-direction: column; gap: 12px; }
.choose-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--muted-dark); min-height: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid2.cities { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid2.countries { max-width: 560px; margin: 0 auto; width: 100%; } }
.tile { min-height: 168px; padding: 18px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font: inherit; color: var(--navy); text-align: start; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; text-decoration: none; }
.tile:hover { border-color: var(--teal); color: var(--navy); }
.tile:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.tile .big { font-size: 22px; font-weight: 600; }
.tile .small { font-size: 14px; color: var(--muted); }
.tile.city { min-height: 86px; padding: 14px; border-radius: 14px; }
.tile.city .big { font-size: 17px; }
.link-btn { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--teal); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }
[hidden] { display: none !important; }

.host-link { margin: 24px auto 0; max-width: 560px; height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; }
.host-link:hover { color: var(--navy); border-color: var(--teal); }

.note { margin: 28px auto 32px; max-width: 560px; padding: 14px 16px; border-radius: 16px; background: var(--teal-pale); color: var(--teal-dark); display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.note svg { flex: none; margin-top: 1px; }

/* Simple content pages */
.page { padding: 48px 0; text-align: center; }
.page h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 36px; margin: 0 0 12px; }
.page p { color: var(--muted-dark); margin: 0 auto 24px; max-width: 520px; }
@media (min-width: 640px) { #countries .choose-head { max-width: 560px; margin: 0 auto; width: 100%; } }

/* Forms and account pages */
.narrow { max-width: 460px; margin: 0 auto; padding: 28px 0 48px; display: flex; flex-direction: column; gap: 16px; }
.narrow h1 { margin: 0; font-size: 26px; font-weight: 600; }
.lead { margin: 0; font-size: 15px; color: var(--muted-dark); }
.seg { display: flex; background: #EEF0F3; border-radius: 22px; padding: 4px; }
.seg button { flex: 1; height: 40px; border: 0; border-radius: 20px; background: transparent; color: var(--muted-dark); font: inherit; font-size: 15px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgba(22,32,46,.15); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.input { height: 48px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--navy); background: #fff; }
.input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.row { display: flex; gap: 8px; }
.row .input { flex: 1; min-width: 0; }
.cc { height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--navy); cursor: pointer; }
.cc[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-pale); color: var(--teal-dark); font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); }
.tick { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--navy); cursor: pointer; }
.tick input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--teal); }
.btn { height: 50px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; }
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn:disabled { background: var(--line-strong); color: var(--muted-dark); cursor: default; }
.btn-plain { height: 44px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--teal); cursor: pointer; padding: 0; align-self: flex-start; }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.msg.error { background: #FDECEA; color: #7A1414; }
.msg.ok { background: var(--teal-pale); color: var(--teal-dark); }
.msg.warn { background: #FCEFD9; color: #6B3F06; }
.center { text-align: center; }
.icon-circle { width: 72px; height: 72px; border-radius: 36px; background: var(--teal-pale); color: var(--teal); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted-dark); }
.msg .btn-plain { height: auto; display: inline; padding: 0; }

/* Street of houses at the bottom of the home page */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.street-wrap { max-width: 1180px; width: 100%; margin: 8px auto 0; padding: 0 20px; }
.street { display: block; width: 100%; height: 130px; }
@media (min-width: 640px) { .street { height: 190px; } }
@media (min-width: 1100px) { .street { height: auto; max-height: 230px; } }
/* (fix) houses sized to the window height on computers, so the whole row is visible without scrolling */
@media (min-width: 640px) {
  .street { height: clamp(100px, 18vh, 170px); max-height: none; }
  .hero { padding: 40px 0 24px; }
  .note { margin: 20px auto 16px; }
  .host-link { margin-top: 18px; }
}
@media (min-width: 640px) {
  .hero { padding: 28px 0 16px; }
  .hero h1 { font-size: 54px; }
  .grid2.countries .tile { min-height: 132px; }
  .choose { gap: 8px; }
  .note { margin: 14px auto 10px; }
  .street-wrap { margin-top: 0; }
  .street { height: clamp(72px, calc(100vh - 545px), 170px); }
}
/* the whole drawing always shows (roofs included); on narrow phones the sides are trimmed instead */
.street-wrap { display: flex; justify-content: center; overflow: hidden; }
.street { width: auto; max-width: none; flex: none; }

/* A little more colour (existing palette) */
body { background: linear-gradient(180deg, #FFFFFF 0%, #F5F6F8 45%, #E3F1F1 100%); }
.top { background: rgba(255,255,255,.9); }
.tile { border-color: #D5E7E7; border-top: 4px solid var(--teal); }
.tile .small { color: var(--teal); font-weight: 500; }
.host-link { background: var(--teal); border-color: var(--teal); color: #fff; }
.host-link:hover { background: var(--teal-dark); color: #fff; }
.host-link svg path { stroke: #fff; }
.note { background: #FBF4E6; color: #6B4614; }

/* ---- Fit the whole home page on one screen (phone, tablet, computer): no scrolling ---- */
body { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
body > header, body > main { flex: none; }
.street-wrap { flex: 1 1 0; min-height: 48px; margin: 0 auto; padding: 0 20px; width: 100%; max-width: 1180px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.street, .street-wrap .street { height: 100%; max-height: 200px; width: auto; max-width: none; flex: none; }
.hero { padding: clamp(12px, 3vh, 40px) 0 clamp(10px, 2.2vh, 26px); }
.hero h1 { font-size: clamp(30px, min(10vw, 6.4vh), 60px); }
.subtitle { margin-top: clamp(6px, 1.4vh, 12px); font-size: clamp(11px, 1.7vh, 14px); }
.choose { gap: clamp(6px, 1.2vh, 12px); }
.choose-head { min-height: 32px; }
.grid2 { gap: clamp(8px, 1.4vh, 12px); }
.tile, .grid2.countries .tile { min-height: clamp(92px, 15vh, 168px); padding: clamp(12px, 2vh, 18px) 16px; }
.tile.city { min-height: clamp(50px, 7.5vh, 76px); padding: 10px 14px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
.tile.city svg { flex: none; }
.host-link { margin-top: clamp(10px, 2vh, 24px); height: clamp(44px, 6vh, 52px); }
.note { margin: clamp(10px, 2vh, 28px) auto clamp(6px, 1vh, 12px); padding: clamp(10px, 1.6vh, 14px) 16px; font-size: clamp(12.5px, 1.8vh, 14px); }
@media (min-width: 640px) { .street-wrap { margin-top: 0; } }
@media (max-width: 639px) { .hero h1 { font-size: clamp(28px, min(9vw, 5.8vh), 44px); } }
@media (max-height: 740px) and (max-width: 639px) {
  .top .wrap { height: 56px; }
  .hero { padding: 10px 0 8px; }
  .tile.city { min-height: 46px; }
  .choose-head { min-height: 28px; font-size: 14px; }
  .host-link { margin-top: 10px; height: 44px; }
  .note { margin-top: 8px; font-size: 12px; line-height: 1.35; }
  .note svg { width: 18px; height: 18px; }
}
.street-wrap { min-height: 40px; }
