:root {
    --bg: #ffffff;
    --surface: #f7f6f2;
    --border: #e3e1d9;
    --text: #1a1a18;
    --text-secondary: #5f5e5a;
    --text-muted: #a3a29b;
    --accent: #185fa5;
    --accent-bg: #e6f1fb;
    --accent-text: #0c447c;
    --warning-text: #854f0b;
    --radius: 8px;
    --radius-lg: 12px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 50;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    line-height: 0;
}

.brand-logo {
    height: 72px;
    width: auto;
    display: block;
}

/* The Slice mark is a clean 1:1 icon; Redeye is a 1.31:1 landscape photo
   with its wordmark on the sleep mask — both are sized by height so they
   sit level in the header regardless of shape. */
.brand-logo-slice { aspect-ratio: 1 / 1; }
.brand-logo-redeye { aspect-ratio: 1.31 / 1; }

@media (max-width: 768px) {
    .site-header { padding: 8px 0; }
    .brand-logo { height: 52px; }
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.page {
    padding: 32px 0 64px;
}

h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 4px;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}

p { margin: 0 0 8px; }

.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.gallery > div {
    background: var(--surface);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    overflow: hidden;
}

.gallery > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery .hero { grid-row: 1 / 3; }

.gallery .caption {
    position: absolute;
    bottom: 8px;
    left: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 8px;
    border-radius: var(--radius);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius);
    margin-right: 6px;
}

.badge-accent { background: var(--accent-bg); color: var(--accent-text); }
.badge-neutral { background: var(--surface); color: var(--text-secondary); }

.meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.rating {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.rating .star { color: #d99a1f; }

.booking-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 8px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.booking-card .rate {
    font-size: 26px;
    font-weight: 600;
}

.booking-card .rate small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.booking-card .rule {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    max-width: 420px;
}

.btn-primary {
    background: var(--text);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover { opacity: 0.9; }

.description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

section { margin-bottom: 32px; }

.amenity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.amenity.unavailable { color: var(--text-muted); }

.amenity .icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.policy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-list li {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.policy-list .icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.reviews {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.review { margin-bottom: 16px; }

.review .stars { color: #d99a1f; font-size: 13px; }

.review .who {
    color: var(--text-secondary);
    font-size: 13px;
}

.review .body {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.not-found {
    padding: 64px 24px;
    text-align: center;
    color: var(--text-secondary);
}

/* Partners (hotel sales) page */

.partners-hero {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    margin-bottom: 48px;
}

.partners-hero h1 {
    font-size: 34px;
    font-weight: 600;
    margin: 0 0 12px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.partners-hero .subhead {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 24px;
}

.btn-large {
    display: inline-block;
    background: var(--text);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
}

.btn-large:hover { opacity: 0.9; }

.section-heading {
    text-align: center;
    margin-bottom: 8px;
}

.section-subheading {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* Non-overlap timeline */

.timeline-bar {
    display: flex;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.timeline-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 4px 8px;
}

.timeline-segment.hotel { background: var(--accent-bg); color: var(--accent-text); flex: 8; }
.timeline-segment.slice { background: var(--text); color: #fff; flex: 15; }
.timeline-segment.buffer { background: var(--surface); color: var(--text-muted); flex: 1; border-left: 1px dashed var(--border); border-right: 1px dashed var(--border); }

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Pillar grid */

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.pillar-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
}

.pillar-card .icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
}

.pillar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.pillar-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Steps */

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto 56px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-item .icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.step-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.step-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Photo strip */

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 56px;
}

.photo-strip .photo-placeholder {
    background: var(--surface);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-direction: column;
    gap: 8px;
}

.cta-band {
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    margin: 0 0 8px;
}

.cta-band p {
    color: rgba(255,255,255,0.75);
    margin: 0 0 24px;
}

.cta-band .btn-large {
    background: #fff;
    color: var(--text);
}

@media (max-width: 768px) {
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-strip { grid-template-columns: 1fr; }
    .partners-hero { padding: 40px 20px; }
    .partners-hero h1 { font-size: 26px; }
}

/* Homepage */

.home-hero {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    margin-bottom: 48px;
}

.home-hero h1 {
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 12px;
}

.home-hero .subhead {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 28px;
}

.clock-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 32px;
}

.clock-card-large {
    padding: 32px 56px;
    margin: 0 auto;
}

.clock-time {
    font-size: 36px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.clock-card-large .clock-time {
    font-size: 56px;
}

.closed-message {
    max-width: 480px;
    margin: 20px auto 16px;
    color: var(--text-secondary);
    font-size: 15px;
}

.referral-banner {
    max-width: 480px;
    margin: 24px auto 0;
    padding: 20px 24px;
    background: var(--accent-bg);
    border-radius: var(--radius-lg);
}

.referral-banner p {
    color: var(--accent-text);
    font-size: 14px;
    margin: 0 0 14px;
}

.btn-referral {
    background: var(--accent-text);
    padding: 10px 20px;
    font-size: 14px;
}

.clock-status {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: var(--radius);
}

.clock-status.open { background: var(--accent-bg); color: var(--accent-text); }
.clock-status.closed { background: var(--surface); color: var(--text-secondary); }

.clock-countdown {
    font-size: 13px;
    color: var(--text-muted);
}

.hotel-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.hotel-list-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hotel-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 26, 24, 0.08);
    border-color: var(--accent);
}

.hotel-list-media {
    position: relative;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
}

.hotel-list-media-economy  { background: linear-gradient(135deg, #7a8a99, #5f6e7a); }
.hotel-list-media-midscale { background: linear-gradient(135deg, #4d8fc4, #185fa5); }
.hotel-list-media-upscale  { background: linear-gradient(135deg, #2f6b5e, #1e4a41); }
.hotel-list-media-luxury   { background: linear-gradient(135deg, #b8862f, #8a611f); }

.hotel-list-class-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: var(--radius);
}

.hotel-list-body {
    padding: 16px 18px 18px;
}

.hotel-list-card .name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.hotel-list-card .meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hotel-list-card .rating {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.hotel-list-card .rating .star { color: #d99a1f; }

.hotel-list-card .review-count { color: var(--text-muted); }

.hotel-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.hotel-list-card .rate {
    font-size: 16px;
    font-weight: 600;
}

.hotel-list-card .rate span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}

.hotel-list-card .view-link {
    font-size: 12px;
    color: var(--accent-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.hotel-list-card:hover .view-link { text-decoration: underline; }

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

@media (max-width: 900px) and (min-width: 769px) {
    .hotel-list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .home-hero { padding: 32px 20px; }
    .home-hero h1 { font-size: 24px; }
    .clock-time { font-size: 28px; }
    .hotel-list-grid { grid-template-columns: 1fr; }
}
