/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bg: #f4f1ea;
  --panel: #fffdf9;
  --panel-strong: #efe5d6;
  --ink: #182027;
  --muted: #5d6872;
  --line: #d7c8b5;
  --accent: #0e6b61;
  --accent-strong: #094b44;
  --danger: #9b2c2c;
  --shadow: 0 18px 44px rgba(24, 32, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(14, 107, 97, 0.12), transparent 32%),
    linear-gradient(180deg, #f7f4ed 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

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

.demo-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.panel,
.city-card,
.hotel-card,
.flash {
  border: 1px solid rgba(215, 200, 181, 0.9);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr 1fr;
  padding: 28px;
  margin-bottom: 28px;
}

.hero.compact,
.hero.success {
  grid-template-columns: 1fr;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1;
  margin-bottom: 12px;
}

h2 {
  font-size: 26px;
}

.hero-copy,
.muted {
  color: var(--muted);
}

.search-panel,
.stack-form {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
}

.section-header,
.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.city-grid,
.card-list,
.detail-grid {
  display: grid;
  gap: 18px;
}

.city-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.city-card,
.panel {
  padding: 22px;
}

.city-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hotel-card {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px;
}

.hotel-card-body {
  flex: 1;
}

.hotel-card-meta,
.room-card-side,
.action-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.detail-grid {
  grid-template-columns: 1.35fr 1fr;
}

.room-stack {
  display: grid;
  gap: 14px;
}

.room-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.tag-ok {
  background: rgba(14, 107, 97, 0.12);
  color: var(--accent-strong);
}

.tag-muted {
  background: rgba(93, 104, 114, 0.12);
  color: var(--muted);
}

.info-block + .info-block {
  margin-top: 20px;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.flash {
  margin-bottom: 18px;
  padding: 16px 18px;
}

.flash-error {
  color: var(--danger);
  border-color: rgba(155, 44, 44, 0.25);
  background: rgba(255, 244, 244, 0.92);
}

@media (max-width: 860px) {
  .hero,
  .detail-grid,
  .hotel-card,
  .room-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .demo-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 20px;
  }
}
