/*
Theme Name: Hotel Jaco
Description: Custom coded theme for Hotel Jaco. Social profile style home page with specials feed.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hoteljaco
*/

:root {
  --ink: #1B1E23;
  --muted: #5E6672;
  --ground: #EEF1F5;
  --card: #FFFFFF;
  --soft: #F5F6F8;
  --chip: #E3E6EB;
  --line: #D9DDE3;
  --teal: #1D64D8;
  --accent: #1D64D8;
  --offer: #C0362C;
  --ph: #D5DAE1;
  --display: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; color: var(--ink); background: var(--ground); font-size: 15px; line-height: 1.4; }
a { color: var(--teal); }
a:hover { color: #154CA6; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--display); margin: 0; }
h2 { font-size: 20px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1160px; margin: 0 auto; }

.btn { display: inline-block; padding: 11px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; background: var(--chip); color: var(--ink); }
.btn:hover { color: var(--ink); filter: brightness(0.96); }
.btn--primary, .btn--primary:hover { background: var(--accent); color: #fff; }
.btn--sm { padding: 12px 18px; }

/* Top bar */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar__in { padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--teal); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 320px; }
.nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nav a { padding: 12px 14px; border-radius: 6px; text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover { background: var(--soft); color: var(--ink); }

/* Profile header */
.profile { background: var(--card); border-bottom: 1px solid var(--line); }
.cover { height: 360px; background: #B9C4D2 center / cover no-repeat; border-radius: 0 0 8px 8px; }
.profile__body { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px 20px; text-align: center; }
.avatar { width: 168px; height: 168px; margin-top: -84px; border-radius: 50%; background: #C9CFD8 center / cover no-repeat; border: 5px solid #fff; }
.profile h1 { font-size: 32px; line-height: 1.15; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* Layout */
.layout { padding: 20px 16px 48px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.feed { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--card); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.side .card { padding: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row--between { align-items: center; justify-content: space-between; gap: 12px; }
.ph { background: var(--ph) center / cover no-repeat; border-radius: 10px; }

/* Room finder */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 12px 16px; min-height: 44px; border-radius: 999px; font: 700 15px inherit; font-family: inherit; border: 1px solid var(--line); background: var(--chip); color: var(--ink); cursor: pointer; }
.pill[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: #fff; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { padding: 10px 4px; border-radius: 8px; text-align: center; font-size: 13px; background: #E4F3E8; color: #14532D; border: 1px solid #9CCFAB; }
.day b { display: block; }
.day--booked { background: #ECEEF1; color: #4B5563; border: 1px dashed #A3ABB6; }

/* Posts */
.post__head { display: flex; align-items: center; gap: 12px; }
.post__avatar { width: 44px; height: 44px; border-radius: 50%; background: #C9CFD8 center / cover no-repeat; flex: none; }
.post__img { height: 340px; }
.post img { border-radius: 10px; }

/* Suites */
.suite { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px; border-radius: 10px; background: var(--soft); }
.suite__img { flex: 1 1 180px; height: 130px; border-radius: 8px; }
.suite__body { flex: 3 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.suite__name { font-weight: 700; font-size: 18px; }
.suite__beds { font-size: 14px; font-weight: 600; color: var(--teal); }
blockquote { margin: 0; padding: 14px; background: var(--soft); border-radius: 10px; }
.map { height: 260px; border: 0; width: 100%; border-radius: 10px; margin-top: 8px; }

/* Specials */
.side h2 { font-size: 17px; }
.special { display: flex; gap: 12px; text-decoration: none; color: var(--ink); padding: 8px; border-radius: 10px; background: var(--soft); }
.special:hover { color: var(--ink); background: var(--chip); }
.special__img { width: 96px; height: 96px; flex: none; border-radius: 8px; }
.special__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.badge { align-self: flex-start; background: var(--offer); color: #fff; font-weight: 700; font-size: 14px; padding: 2px 8px; border-radius: 6px; }
.badge--teal { background: var(--teal); }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.promo { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.promo:hover { color: var(--ink); }
.promo__img { height: 170px; }
.promo .btn { align-self: flex-start; padding: 10px 16px; }
.rule { height: 1px; background: var(--line); }

.footer { padding: 24px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
.page-content { padding: 32px 16px 48px; }
.page-content .card { max-width: 820px; margin: 0 auto; display: block; }

@media (max-width: 600px) {
  .cover { height: 200px; }
  .avatar { width: 132px; height: 132px; margin-top: -66px; }
  .profile h1 { font-size: 30px; }
  .post__img { height: 220px; }
}
