/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3d6b;
  --primary-light: #2563a0;
  --primary-dark: #0f2a4a;
  --accent: #d4a054;
  --accent-light: #e8c48a;
  --bg: #f5f6f8;
  --white: #ffffff;
  --text: #1e2a3a;
  --text-muted: #5a6a7a;
  --border: #dde2e8;
  --card-shadow: 0 2px 12px rgba(26,61,107,0.08);
  --radius: 12px;
  --transition: 0.25s ease;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.header {
  background: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header h1 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-subtitle {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 400;
  margin-top: 1px;
}

.header-phone a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 16px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* ===== MAIN ===== */
.main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 24px;
}

/* ===== WELCOME BLOCK ===== */
.welcome {
  margin-bottom: 24px;
}
.welcome p {
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  text-decoration: none;
  color: var(--white);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(26,61,107,0.18);
  color: var(--white);
}

.card-bg {
  height: 110px;
  overflow: hidden;
  position: relative;
}

.card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-label {
  padding: 10px 12px;
  background: var(--white);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.card-label small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== SECTION BANNER ===== */
.section-banner {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.section-banner img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.section-banner .banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
}

.section-banner .banner-overlay h2 {
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.3rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===== SECTION PAGE ===== */
.section-page .text-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.section-page h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin: 20px 0 10px;
}

.section-page p {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.section-page ul, .section-page ol {
  margin: 10px 0 14px 20px;
  font-size: 0.92rem;
}

.section-page li {
  margin-bottom: 6px;
}

.section-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  transition: all var(--transition);
}
.section-back:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  margin: 14px 0 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table-wrap th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:nth-child(even) { background: #f8f9fb; }

/* ===== SUBSECTION NAV ===== */
.subsection-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.subsection-btn {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
}
.subsection-btn:hover, .subsection-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.subsection-content { display: none; }
.subsection-content.active { display: block; }

/* ===== TABS (prices) ===== */
.tab-bar {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== NOTE / HIGHLIGHT ===== */
.note {
  background: #eef4fb;
  border-left: 3px solid var(--primary-light);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
  font-size: 0.88rem;
}

/* ===== PHONE TABLE ===== */
.phone-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 14px 0 18px;
}

.phone-grid .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  background: var(--white);
  font-size: 0.8rem;
}

.phone-grid .hdr {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 10px 8px;
}

.phone-grid .cell {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
}

/* ===== DISTANCE LIST ===== */
.distance-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.distance-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.distance-list li span:last-child {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  margin-left: 12px;
}

/* ===== SERVICE LISTS ===== */
.service-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.service-list li {
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  border-left: 3px solid var(--primary-light);
}

/* ===== BUILDING CARDS ===== */
.building-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--card-shadow);
}
.building-card h3 {
  margin-top: 0 !important;
  color: var(--primary) !important;
}

/* ===== ATTRACTION CARDS ===== */
.attraction-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}
.attraction-card h3 {
  margin-top: 0 !important;
  font-size: 1rem;
  color: var(--primary);
}
.attraction-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 20px 16px;
  margin-top: auto;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-inner a { color: var(--accent-light); }
.footer-inner a:hover { color: var(--white); }

.footer-inner .footer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-bg { height: 90px; }
  .phone-grid .row { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; font-size: 0.72rem; }
}

@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card-bg { height: 130px; }
  .card-bg .icon { font-size: 2.6rem; }
}

/* ===== PRICE EXTRAS ===== */
.extras-list {
  margin: 10px 0;
  font-size: 0.88rem;
}
.extras-list li {
  margin-bottom: 4px;
}

.price-services {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.price-services li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.88rem;
}
.price-services li::before {
  content: '\2713';
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 700;
}

/* ===== HOURS LIST ===== */
.hours-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.88rem;
}
.hours-list li strong { color: var(--primary); }
.hours-list li span { text-align: right; font-size: 0.82rem; color: var(--text-muted); }
