/* ============================================
   ST Management Guest Portal — Luxury Minimalist
   ============================================ */

/* --- CSS Variables --- */
:root {
  --gold: #D4B55A;
  --gold-light: #FAF5E8;
  --gold-dark: #A08832;
  --black: #1E1E1E;
  --charcoal: #2A2A2A;
  --dark-gray: #3D3D3D;
  --medium-gray: #8A8A8A;
  --light-gray: #FAFAF8;
  --border: #EDEBE6;
  --white: #FFFFFF;
  --success: #3DA065;
  --info: #5A85BF;
  --warning: #D49A4E;
  --danger: #B55050;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--light-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
}

/* --- Page Wrap --- */
.page-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 100px;
  position: relative;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(170deg, #2A2A2A 0%, #3D3D3D 100%);
  color: var(--white);
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.hero .brand {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.hero .subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.hero .welcome {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Language Selector --- */
.lang-selector {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-option {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  transition: all var(--transition);
}

.lang-option:hover {
  color: var(--white);
}

.lang-option.active {
  background: var(--gold);
  color: var(--black);
}

/* ============================================
   QUICK ACTIONS — Sticky Bottom Bar
   ============================================ */
.quick-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
}

.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--dark-gray);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.qa-btn:hover {
  background: var(--gold-light);
  color: var(--black);
}

.qa-icon {
  font-size: 20px;
  line-height: 1;
}

/* ============================================
   SECTIONS — Accordion Style
   ============================================ */
.section {
  margin: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  border-left: 3px solid var(--gold);
  transition: background var(--transition);
  user-select: none;
  -webkit-user-select: none;
}

.section-header:hover {
  background: var(--gold-light);
}

.section-header h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.section-header::after {
  content: '▾';
  font-size: 14px;
  color: var(--medium-gray);
  transition: transform var(--transition);
}

.section.open .section-header::after {
  transform: rotate(180deg);
}

.section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease;
  padding: 0 20px;
}

.section.open .section-body {
  max-height: 3000px;
  padding: 0 20px 20px;
}

/* ============================================
   WIFI CARD
   ============================================ */
.wifi-card {
  background: #3D3D3D;
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
}

.wifi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.wifi-row + .wifi-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wifi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.wifi-value {
  font-size: 16px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.5px;
}

.wifi-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  line-height: 1.5;
}

/* --- Copy Button --- */
.copy-btn {
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.copy-btn:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.copy-btn.copied {
  background: var(--success);
  color: var(--white);
}

/* ============================================
   TIMELINE — Check-in / Check-out
   ============================================ */
.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 0;
}

.timeline-point {
  text-align: center;
  flex-shrink: 0;
}

.timeline-time {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
}

.timeline-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--medium-gray);
  margin-top: 4px;
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 0 20px;
  position: relative;
  min-width: 60px;
}

.timeline-line::after {
  content: '→';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 14px;
}

.checkin-instructions {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.checkin-instructions li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkin-instructions li:last-child {
  border-bottom: none;
}

.checkin-instructions .step-icon {
  flex-shrink: 0;
  font-size: 18px;
}

/* ============================================
   HOUSE RULES
   ============================================ */
.rules-list {
  list-style: none;
  padding: 0;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}

.rules-list li:last-child {
  border-bottom: none;
}

.rule-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

/* ============================================
   CONTACT CARD
   ============================================ */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.contact-card:last-child {
  margin-bottom: 0;
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.contact-role {
  font-size: 12px;
  color: var(--medium-gray);
  margin-top: 2px;
}

.contact-phone {
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.call-btn {
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.call-btn:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.contact-card.emergency {
  border: 2px solid var(--danger);
  background: rgba(155, 59, 59, 0.05);
}

.contact-card.emergency .contact-name {
  color: var(--danger);
}

/* ============================================
   ADDRESS
   ============================================ */
.address-block {
  text-align: center;
  padding: 20px 0;
}

.address-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.6;
}

.address-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  background: transparent;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

/* ============================================
   TRANSPORT
   ============================================ */
.transport-block {
  margin-bottom: 16px;
}

.transport-block:last-child {
  margin-bottom: 0;
}

.transport-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--medium-gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transport-title .t-icon {
  font-size: 16px;
}

.stop-list {
  list-style: none;
  padding: 0;
}

.stop-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stop-list li:last-child {
  border-bottom: none;
}

.stop-distance {
  font-size: 12px;
  color: var(--medium-gray);
  flex-shrink: 0;
}

.transport-note {
  font-size: 13px;
  color: var(--medium-gray);
  padding: 12px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ============================================
   GROCERY & BANKING — Simple List
   ============================================ */
.place-list {
  list-style: none;
  padding: 0;
}

.place-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.place-list li:last-child {
  border-bottom: none;
}

.place-list .place-name {
  font-weight: 600;
  color: var(--black);
}

.place-list .place-detail {
  font-size: 13px;
  color: var(--medium-gray);
  margin-top: 2px;
}

.place-list .place-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ============================================
   CATEGORY FILTER — Horizontal Scroll
   ============================================ */
.cat-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-filter::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--medium-gray);
  background: var(--light-gray);
  border: 1px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.cat-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* ============================================
   PLACE CARD — Restaurants
   ============================================ */
.place-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.place-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid var(--gold);
  transition: all var(--transition);
}

.place-card:hover {
  box-shadow: var(--shadow-md);
}

.place-card .pc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.place-card .pc-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.place-card .pc-desc {
  font-size: 13px;
  color: var(--medium-gray);
  line-height: 1.5;
  margin-bottom: 10px;
}

.place-card .pc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.place-card .pc-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-gray);
}

.place-card .pc-maps-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Closed place */
.place-card.place-closed {
  opacity: 0.6;
  border-left-color: var(--danger);
}

.place-card.place-closed .pc-name {
  text-decoration: line-through;
  color: var(--medium-gray);
}

.closed-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  background: var(--danger);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.restaurant-warning {
  font-size: 13px;
  color: var(--warning);
  padding: 12px;
  background: rgba(199, 133, 59, 0.08);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  line-height: 1.5;
}

/* ============================================
   SIGHT CARD — Sights & Attractions
   ============================================ */
.sight-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
  transition: all var(--transition);
}

.sight-card:hover {
  box-shadow: var(--shadow-md);
}

.sight-card .sc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.sight-card .sc-desc {
  font-size: 13px;
  color: var(--medium-gray);
  line-height: 1.5;
  margin-bottom: 10px;
}

.sight-card .sc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sight-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--black);
}

.sight-badge.hidden-gem {
  background: var(--info);
  color: var(--white);
}

.sight-badge.kids {
  background: var(--success);
  color: var(--white);
}

/* ============================================
   TIP CARD
   ============================================ */
.tip-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
}

.tip-card .tip-emoji {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.tip-card .tip-text {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.5;
}

/* ============================================
   WEATHER WIDGET
   ============================================ */
.weather-widget {
  text-align: center;
  padding: 20px 0;
}

.weather-temp {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--black);
}

.weather-desc {
  font-size: 14px;
  color: var(--medium-gray);
  margin-top: 4px;
}

.weather-loading {
  font-size: 13px;
  color: var(--medium-gray);
}

/* ============================================
   FEEDBACK SECTION
   ============================================ */
.feedback-section {
  text-align: center;
  padding: 32px 20px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  margin: 16px;
  background: var(--white);
}

.feedback-section h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 8px;
}

.feedback-section p {
  font-size: 14px;
  color: var(--medium-gray);
  margin-bottom: 20px;
}

.feedback-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.feedback-btn:hover {
  background: var(--gold-dark);
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 12px;
  color: var(--medium-gray);
}

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */

/* Small phones: default (0-479px) — full width, padding 16px */

/* Large phones / Small tablets */
@media (min-width: 480px) {
  .page-wrap {
    max-width: 520px;
    margin: 0 auto;
  }

  .section {
    margin: 16px 0;
  }

  .feedback-section {
    margin: 16px 0;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .page-wrap {
    max-width: 680px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .place-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sight-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .quick-actions {
    border-radius: 16px 16px 0 0;
    max-width: 680px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .page-wrap {
    max-width: 800px;
  }

  .hero {
    padding: 60px 32px 48px;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .hero h1 {
    font-size: 40px;
  }

  .quick-actions {
    max-width: 800px;
  }

  .section-body {
    font-size: 15px;
  }
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --light-gray: #141414;
    --white: #1C1C1C;
    --border: #2A2A2A;
    --black: #F5F5F5;
    --dark-gray: #E0E0E0;
    --medium-gray: #999;
    --gold: #D4B55A;
    --gold-light: rgba(201, 168, 76, 0.1);
  }

  body {
    background: #0D0D0D;
    color: var(--dark-gray);
  }

  .hero {
    background: linear-gradient(170deg, #000 0%, #111 100%);
  }

  .quick-actions {
    background: #1C1C1C;
    border-top-color: #2A2A2A;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.4);
  }

  .section {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }

  .place-card {
    background: #1C1C1C;
    border-color: #2A2A2A;
  }

  .sight-card {
    background: #1C1C1C;
    border-color: #2A2A2A;
  }

  .tip-card {
    background: #1A1A1A;
  }

  .contact-card {
    background: #1A1A1A;
  }

  .wifi-card {
    background: #000;
  }

  .feedback-section {
    background: #1C1C1C;
    border-color: var(--gold);
  }

  .cat-btn {
    background: #1A1A1A;
    border-color: #2A2A2A;
  }

  .transport-note {
    background: #1A1A1A;
  }
}

/* ============================================
   NAVIGATE BUTTON — Small inline maps link
   ============================================ */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--info);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--info);
  border-radius: 6px;
  transition: all var(--transition);
  margin-top: 6px;
}

.nav-link:hover {
  background: var(--info);
  color: var(--white);
}

/* ============================================
   APP DOWNLOAD LINKS
   ============================================ */
.app-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-gray);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.app-link:hover {
  border-color: var(--gold);
  background: var(--gold-light);
}

/* ============================================
   OPENING HOURS
   ============================================ */
.pc-hours {
  font-size: 12px;
  color: var(--medium-gray);
  margin-top: 4px;
  font-style: italic;
}

.hours-note {
  font-size: 11px;
  color: var(--medium-gray);
  font-style: italic;
  margin-top: 12px;
}

/* ============================================
   UTILITY
   ============================================ */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
