:root {
  --ink: #17191c;
  --muted: #686d73;
  --soft: #f5f5f3;
  --line: #d9dcde;
  --white: #ffffff;
  --accent: #24272a;
  --shell: min(1180px, calc(100% - 64px));
  --space-section: clamp(88px, 12vw, 160px);
  --space-content: clamp(28px, 4vw, 56px);
  --font-sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header { width: var(--shell); margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.homepage-header { position: fixed; top: 0; left: 0; z-index: 10; width: 100%; padding-right: max(18px, calc((100vw - 1180px) / 2)); padding-left: max(18px, calc((100vw - 1180px) / 2)); color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); }
.homepage-header .primary-nav { color: var(--muted); }
.homepage-header .primary-nav a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.brand-logo { display: block; width: 168px; height: auto; max-height: 54px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--white); font-size: 14px; }
.primary-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
.primary-nav a:hover, .footer-links a:hover, .footer-contact a:hover { color: var(--ink); }
.nav-contact { padding: 10px 16px; color: var(--white); background: var(--ink); }

.hero { position: relative; min-height: min(720px, 100vh); display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; }
.hero-overlay { background: rgba(12, 14, 16, .52); }
.hero-copy { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.eyebrow, .footer-label { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 26px; font-size: clamp(48px, 7vw, 96px); line-height: .96; letter-spacing: -.045em; font-weight: 650; }
h2 { max-width: 620px; margin-bottom: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; letter-spacing: -.04em; font-weight: 650; }
h3 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.025em; }
.hero .eyebrow { color: #d8dcde; }
.hero-intro { max-width: 480px; margin-bottom: 34px; color: #e1e4e5; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; font-size: 14px; font-weight: 700; }
.primary-button { color: var(--ink); background: var(--white); }
.dark-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; color: var(--white); background: var(--ink); font-size: 14px; font-weight: 700; }
.hero-text-link { color: var(--white); font-size: 14px; font-weight: 700; }
.hero-text-link span { display: inline-block; margin-left: 8px; }

.search-strip { background: var(--soft); border-bottom: 1px solid var(--line); }
.search-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 104px; }
.search-label, .search-hint { display: inline; margin: 0; }
.search-label { margin-right: 12px; font-size: 15px; font-weight: 700; }
.search-hint { color: var(--muted); font-size: 14px; }
.search-action { font-size: 14px; font-weight: 700; }
.search-action span { margin-left: 10px; }

.category-section { padding: var(--space-section) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: var(--space-content); }
.section-note { max-width: 280px; margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { background: var(--soft); }
.category-card img { width: 100%; height: 300px; object-fit: cover; filter: grayscale(12%); }
.category-card-copy { padding: 24px 24px 28px; }
.category-number { margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.category-card-copy p:not(.category-number) { min-height: 78px; margin-bottom: 22px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 700; }
.text-link span { display: inline-block; margin-left: 8px; }
.category-card:hover .text-link { text-decoration: underline; text-underline-offset: 4px; }

.trust-section { padding: var(--space-section) 0; color: var(--white); background: var(--ink); }
.inquiry-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 10vw, 160px); align-items: end; }
.inquiry-copy p { max-width: 480px; margin-bottom: 28px; color: #c5c9cc; font-size: 18px; }

.site-footer { background: var(--soft); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.footer-description { max-width: 270px; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.footer-call { margin-top: 22px; }
.footer-contact, .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 14px; }
.footer-label { margin-bottom: 8px; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.admin-nav { display: flex; align-items: center; gap: 24px; }
.admin-user { color: var(--muted); font-size: 13px; }
.admin-main { padding: 80px 0 120px; }
.admin-auth { padding: 120px 0; }
.admin-auth[hidden], .admin-main[hidden] { display: none; }
.admin-auth h1 { max-width: 720px; margin-bottom: 34px; font-size: clamp(44px, 6vw, 72px); }
.auth-form { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 20px; align-items: end; }
.auth-form label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; }
.auth-form input { min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); color: var(--ink); background: var(--white); font: inherit; }
.auth-form .dark-button { min-height: 48px; border: 0; cursor: pointer; }
.form-status { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.admin-signout { padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.admin-signout:hover { color: var(--ink); }
.admin-signout[hidden] { display: none; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.admin-heading h1 { max-width: 780px; margin-bottom: 20px; font-size: clamp(46px, 6vw, 76px); }
.admin-intro { max-width: 520px; margin: 0; color: var(--muted); font-size: 18px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.admin-summary > div { display: flex; flex-direction: column; gap: 4px; padding: 26px 28px 28px 0; border-right: 1px solid var(--line); }
.admin-summary > div:not(:first-child) { padding-left: 28px; }
.admin-summary > div:last-child { border-right: 0; }
.admin-tools { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.admin-tools h2 { font-size: clamp(28px, 3vw, 42px); }
.admin-tools p:not(.eyebrow) { max-width: 480px; margin: 0; color: var(--muted); }
.tool-actions { display: flex; gap: 12px; flex-shrink: 0; }
.outline-dark-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ink); color: var(--ink); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.file-button { cursor: pointer; }
.summary-value { font-size: 36px; line-height: 1; font-weight: 650; letter-spacing: -.04em; }
.summary-label { color: var(--muted); font-size: 13px; }
.admin-catalogue { padding-top: var(--space-section); }
.catalogue-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalogue-group { min-height: 180px; padding: 24px; background: var(--soft); }
.catalogue-group h3 { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 24px; }
.admin-listings { display: flex; flex-direction: column; gap: 14px; }
.admin-listings-empty { margin: 0; color: var(--muted); font-size: 14px; }
.admin-listing { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.admin-listing img { width: 64px; height: 64px; object-fit: cover; }
.admin-listing h4 { margin: 0 0 3px; font-size: 15px; }
.admin-listing p { margin: 0 0 3px; color: var(--muted); font-size: 13px; }
.admin-listing span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.remove-listing { display: block; margin-top: 8px; padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.remove-listing:hover { color: var(--ink); }
.edit-listing { display: inline-block; margin: 8px 12px 0 0; padding: 0; border: 0; color: var(--ink); background: transparent; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.admin-inquiries { padding-top: var(--space-section); }
.frequent-inquiries { border-top: 1px solid var(--line); }
.frequent-inquiry { display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.frequent-rank { color: var(--muted); font-size: 12px; }
.frequent-inquiry strong { font-size: 15px; }
.frequent-inquiry > span:last-child { color: var(--muted); font-size: 13px; }
.inquiry-history { margin-top: 28px; color: var(--muted); font-size: 13px; }
.admin-workspace, .admin-form-preview { padding-top: var(--space-section); }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: var(--space-content); }
.workspace-heading h2, .admin-form-preview h2 { font-size: clamp(32px, 4vw, 52px); }
.workspace-heading > p { max-width: 280px; margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); min-height: 430px; background: var(--soft); }
.empty-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 6vw, 72px); }
.empty-panel-number { margin-bottom: 48px; color: var(--muted); font-size: 13px; }
.empty-panel h3 { max-width: 370px; margin-bottom: 16px; font-size: clamp(28px, 3vw, 42px); }
.empty-panel p { max-width: 390px; margin-bottom: 28px; color: var(--muted); }
.photo-guide { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr 1fr; gap: 4px; overflow: hidden; }
.photo-guide img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.photo-guide img:first-child { grid-row: 1 / -1; }
.admin-form-preview { display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; gap: clamp(48px, 10vw, 160px); padding-bottom: var(--space-section); }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form-fields label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; }
.form-fields input, .form-fields select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; color: var(--muted); background: var(--white); font: inherit; }
.form-fields input:disabled, .form-fields select:disabled { opacity: 1; }
.wide-field { grid-column: 1 / -1; }
.upload-field { display: flex; align-items: center; min-height: 82px; padding: 18px; border: 1px dashed var(--line); color: var(--muted); background: var(--soft); }
.admin-footer { border-top: 1px solid var(--line); }

.category-page { padding-top: 56px; padding-bottom: var(--space-section); }
.back-link { display: inline-block; margin-bottom: 72px; color: var(--muted); font-size: 14px; }
.back-link:hover, .plain-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.category-page-heading { padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.category-page-heading h1 { margin-bottom: 22px; }
.category-page-heading > p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 18px; }
.category-empty { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 9vw, 120px); padding-top: var(--space-section); }
.category-empty img { width: 100%; height: 480px; object-fit: cover; }
.category-empty[data-category] { display: block; }
.category-state { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 9vw, 120px); }
.category-empty h2 { margin-bottom: 20px; font-size: clamp(34px, 4.5vw, 60px); }
.category-empty p:not(.eyebrow) { max-width: 430px; margin-bottom: 28px; color: var(--muted); font-size: 18px; }
.category-contact-actions { display: flex; align-items: center; gap: 24px; }
.plain-link { font-size: 14px; font-weight: 700; }
.category-listings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: var(--space-section); }
.category-listings-title { grid-column: 1 / -1; margin: 0 0 8px; font-size: clamp(32px, 4vw, 52px); }
.listing-card { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--soft); }
.listing-card > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.listing-card-copy { padding: 28px; }
.listing-status { margin-bottom: 16px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.listing-card h2 { margin-bottom: 10px; font-size: 30px; }
.listing-price { color: var(--ink) !important; font-weight: 700; }
.listing-location { margin-bottom: 8px; color: var(--muted) !important; font-size: 13px !important; }
.listing-room-prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.listing-room-prices span { padding: 8px 10px; color: var(--muted); background: var(--white); font-size: 12px; }
.listing-room-prices strong { color: var(--ink); }
.listing-room-prices small { color: var(--muted); }
.listing-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 20px; }
.listing-gallery img { width: 100%; height: 88px; object-fit: cover; }
.availability-disclaimer { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.listing-card-copy > p:not(.listing-status):not(.listing-price) { min-height: 72px; font-size: 14px; }
.sort-control { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.sort-control select { min-height: 42px; padding: 8px 34px 8px 12px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--white); font: inherit; }
.admin-form-note { max-width: 380px; margin-top: 20px; color: var(--muted); }
.form-fields textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); resize: vertical; color: var(--ink); background: var(--white); font: inherit; }
.form-fields input, .form-fields select, .form-fields textarea { border-radius: 0; }
.upload-field { display: flex; align-items: center; gap: 16px; min-height: 82px; padding: 18px; border: 1px dashed var(--line); color: var(--muted); background: var(--soft); }
.upload-field input { min-height: auto; padding: 0; border: 0; background: transparent; }
.photo-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; grid-column: 1 / -1; }
.photo-preview:empty { display: none; }
.photo-preview img { width: 100%; height: 100px; object-fit: cover; }
.form-actions { display: flex; align-items: center; gap: 20px; }
.form-actions p { margin: 0; color: var(--muted); font-size: 13px; }
.hostel-fields { padding: 20px; border: 1px solid var(--line); background: var(--soft); }
.hostel-duration { display: block; max-width: 260px; margin-bottom: 20px; }
.field-group-label { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.field-group-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.hostel-price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hostel-fields[hidden] { display: none; }
.category-dialog { width: min(560px, calc(100% - 36px)); padding: 0; border: 0; color: var(--ink); background: var(--white); }
.category-dialog::backdrop { background: rgba(23, 25, 28, .48); }
.category-dialog-inner { padding: clamp(28px, 5vw, 52px); }
.category-dialog h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 46px); }
.category-dialog p:not(.eyebrow) { max-width: 420px; color: var(--muted); }
.category-choice-list { margin-top: 30px; border-top: 1px solid var(--line); }
.category-choice-list button { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; width: 100%; padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.category-choice-list button:hover { background: var(--soft); }
.category-choice-list span { color: var(--muted); font-size: 12px; }
.category-choice-list b { font-size: 18px; font-weight: 400; }
.dialog-close { margin-top: 24px; padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; cursor: pointer; }
.terms-dialog { width: min(650px, calc(100% - 36px)); max-height: min(780px, calc(100% - 36px)); padding: 0; border: 0; color: var(--ink); background: var(--white); }
.terms-dialog::backdrop { background: rgba(23, 25, 28, .56); }
.terms-dialog-inner { padding: clamp(28px, 5vw, 56px); }
.terms-dialog h2 { margin-bottom: 24px; font-size: clamp(32px, 4vw, 52px); }
.terms-copy { color: var(--muted); font-size: 15px; }
.terms-copy strong { color: var(--ink); }
.terms-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin-top: 30px; }
.terms-actions .dialog-close { margin: 0; }

@media (max-width: 800px) {
  :root { --shell: min(100% - 36px, 600px); --space-section: 80px; }
  .site-header { min-height: 76px; }
  .primary-nav a:not(.nav-contact) { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 48px; padding-top: 80px; }
  h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero { min-height: 640px; }
    .hero-copy { padding-top: 80px; padding-bottom: 80px; }
    .hero-image { height: 100%; min-height: 0; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
    .search-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 24px; gap: 14px; }
  .section-heading, .inquiry-layout { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-note { max-width: 420px; }
  .category-grid { grid-template-columns: 1fr; gap: 20px; }
  .category-card img { height: 250px; }
  .category-card-copy p:not(.category-number) { min-height: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .admin-main { padding-top: 56px; }
  .admin-auth { padding: 80px 0; }
  .auth-form { grid-template-columns: 1fr; }
  .admin-tools { align-items: flex-start; flex-direction: column; }
  .admin-heading, .workspace-heading { align-items: flex-start; flex-direction: column; gap: 28px; }
  .admin-summary > div, .admin-summary > div:not(:first-child) { padding: 22px 16px 22px 0; }
  .admin-summary > div:not(:first-child) { padding-left: 16px; }
  .admin-grid, .admin-form-preview { grid-template-columns: 1fr; }
  .catalogue-groups { grid-template-columns: 1fr; }
  .photo-guide { min-height: 360px; }
  .admin-form-preview { gap: 40px; }
  .category-page { padding-top: 40px; }
  .back-link { margin-bottom: 48px; }
  .category-page-heading { padding-bottom: 48px; }
  .category-empty { gap: 40px; padding-top: 72px; }
  .category-state { grid-template-columns: 1fr; gap: 40px; }
  .category-empty img { height: 360px; }
  .category-listings { grid-template-columns: 1fr; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-card > img { min-height: 240px; height: 240px; }
  .photo-preview { grid-template-columns: repeat(2, 1fr); }
  .hostel-price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .primary-nav { gap: 0; }
  .nav-contact { padding: 9px 12px; font-size: 12px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 27px; height: 27px; }
  .hero-image { height: 100%; }
  .footer-main { display: flex; flex-direction: column; }
  .admin-nav { gap: 0; }
  .admin-user { display: none; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-summary > div, .admin-summary > div:not(:first-child) { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-summary > div:last-child { border-bottom: 0; }
  .form-fields { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .category-contact-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
}
