:root {
  --bg: #08111f;
  --bg-soft: #0f1c31;
  --surface: rgba(12, 23, 40, 0.92);
  --surface-strong: #12233d;
  --text: #edf4ff;
  --muted: #a8b5c8;
  --accent: #62d4ff;
  --accent-strong: #41b4e8;
  --border: rgba(151, 179, 214, 0.2);
  --shadow: rgba(1, 10, 25, 0.45);
}

body.public-page {
  --bg: #1b2a3d;
  --bg-soft: #24374d;
  --surface: rgba(28, 45, 65, 0.94);
  --surface-strong: #2a4059;
  --text: #edf4ff;
  --muted: #b4c1d1;
  --accent: #70d9ff;
  --accent-strong: #4ebde8;
  --border: rgba(166, 194, 224, 0.22);
  --shadow: rgba(4, 13, 27, 0.38);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(74, 126, 184, 0.24), transparent 35%),
    linear-gradient(180deg, #263b54 0%, #1b2a3d 100%);
}

body.member-page {
  --bg: #08111f;
  --bg-soft: #0f1c31;
  --surface: rgba(12, 23, 40, 0.92);
  --surface-strong: #12233d;
  --text: #edf4ff;
  --muted: #a8b5c8;
  --accent: #62d4ff;
  --accent-strong: #41b4e8;
  --border: rgba(151, 179, 214, 0.2);
  --shadow: rgba(1, 10, 25, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(54, 93, 154, 0.22), transparent 32%),
    linear-gradient(180deg, #0a1425 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
}

.datetime-badge {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 30;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(6, 14, 26, 0.84);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px var(--shadow);
  font-size: 0.92rem;
}

.datetime-badge #current-date {
  color: var(--muted);
}

.datetime-badge #current-time {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(151, 179, 214, 0.12);
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(14px);
}

.public-page .site-header {
  border-bottom-color: rgba(79, 116, 168, 0.16);
  background: rgba(255, 255, 255, 0.76);
}

.public-page .brand,
.public-page .site-nav a,
.public-page .auth-user-name,
.public-page .site-footer,
.public-page .site-footer p,
.public-page .site-footer a,
.public-page .footer-layout a,
.public-page .footer-layout p {
  color: var(--text);
}

.public-page .site-nav a,
.public-page .auth-user-name,
.public-page .footer-layout p,
.public-page .footer-layout a {
  opacity: 0.9;
}

.public-page .site-header .site-nav a,
.public-page .site-header .auth-user-name,
.public-page .site-header .logout-button {
  color: #52657d;
}

.public-page .brand,
.public-page .footer-layout p,
.public-page .footer-layout a {
  color: #17253a;
}

.public-page .site-footer {
  background: rgba(255, 255, 255, 0.35);
  border-top-color: rgba(79, 116, 168, 0.12);
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.auth-user-name {
  color: var(--muted);
  font-weight: 600;
}

.logout-form {
  margin: 0;
}

.logout-button {
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #96f0ff);
  color: #042130;
  text-decoration: none;
  font-weight: 800;
}

.header-link-button-secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-layout a:hover,
.footer-layout a:focus-visible {
  color: var(--accent);
}

.hero,
.section {
  padding: 3.75rem 0;
}

.auth-page {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 6rem 0 3.5rem;
}

.travel-page {
  padding: 6rem 0 3.5rem;
}

.travel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
}

.travel-topbar-text {
  max-width: 640px;
}

.travel-topbar .hero-actions {
  margin: 0;
  flex-shrink: 0;
}

.travel-photo-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 3rem;
}

.travel-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.travel-photo-box {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 36px var(--shadow);
}

.travel-photo-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.travel-photo-arrow {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: inherit;
  background: var(--surface);
  box-shadow: 0 12px 24px var(--shadow);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.travel-photo-arrow:hover,
.travel-photo-arrow:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.admin-page {
  min-height: calc(100vh - 90px);
  padding: 6rem 0 3.5rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 2rem;
  align-items: center;
}

.admin-layout {
  display: grid;
  gap: 2rem;
}

.auth-card,
.auth-form-card,
.admin-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 36px var(--shadow);
}

.auth-card {
  padding: 1.6rem;
  border-radius: 24px;
}

.travel-notes-wrap {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 1.5rem;
}

.travel-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.notes-panel {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 36px var(--shadow);
}

.see-comments-row {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  text-align: center;
}

.bottom-return-row {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 0;
}

.travel-blog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
}

.travel-blog-overlay[hidden] {
  display: none;
}

.travel-blog-overlay:target,
.travel-blog-overlay.is-open {
  display: flex;
}

.travel-blog-modal {
  width: 100%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 60px var(--shadow);
}

.close-comments-row {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

body.travel-blog-open {
  overflow: hidden;
}

.notes-panel .section-heading {
  margin-bottom: 1.4rem;
}

.travel-form {
  display: grid;
  gap: 0.65rem;
}

.travel-form label {
  font-weight: 700;
}

.travel-form input,
.travel-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  resize: vertical;
}

.travel-form input:focus,
.travel-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.travel-form .status-message {
  min-height: 1.3rem;
  margin: 0.35rem 0 0;
}

.travel-blog {
  padding-bottom: 4rem;
}

.blog-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.blog-column h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-entry {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.blog-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-entry-head h4 {
  margin: 0;
  font-size: 1.1rem;
}

.blog-meta {
  margin: 0.25rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-body {
  margin: 0;
  white-space: pre-wrap;
}

.blog-delete-form {
  margin: 0;
}

.blog-delete-button {
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 111, 111, 0.35);
  border-radius: 999px;
  background: rgba(255, 111, 111, 0.12);
  color: #ffd4d4;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-card {
  padding: 1.5rem;
  border-radius: 24px;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.utility-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 35, 61, 0.72);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.utility-card:hover,
.utility-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.utility-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.55rem;
}

.utility-card p {
  min-height: 3.2rem;
  color: var(--muted);
}

.utility-link {
  color: var(--accent);
  font-weight: 800;
}

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-panel h2 {
  margin-bottom: 1rem;
}

.auth-form-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.4rem;
  border-radius: 20px;
}

.auth-form-card label {
  font-weight: 700;
}

.auth-form-card input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(151, 179, 214, 0.24);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
}

.auth-form-card input:focus {
  outline: 2px solid rgba(98, 212, 255, 0.35);
  border-color: var(--accent);
}

.auth-form-card button {
  width: fit-content;
  min-height: 48px;
  margin-top: 0.25rem;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #96f0ff);
  color: #042130;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.status-message {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.status-message-success {
  background: rgba(47, 201, 131, 0.15);
  color: #9effd0;
}

.status-message-error {
  background: rgba(255, 111, 111, 0.14);
  color: #ffbcbc;
}

.form-hint,
.auth-note {
  margin: 0;
  color: var(--muted);
}

.auth-note {
  margin-top: 1rem;
}

.auth-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.auth-note a:hover,
.auth-note a:focus-visible {
  text-decoration: underline;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-audit-section {
  margin-top: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid rgba(151, 179, 214, 0.16);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-action-form {
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-role-button,
.admin-disable-button,
.admin-enable-button {
  min-height: 40px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-role-button {
  border: 1px solid rgba(98, 212, 255, 0.3);
  background: rgba(98, 212, 255, 0.12);
  color: #c9f5ff;
}

.admin-disable-button {
  border: 1px solid rgba(255, 111, 111, 0.35);
  background: rgba(255, 111, 111, 0.12);
  color: #ffd4d4;
}

.admin-enable-button {
  border: 1px solid rgba(47, 201, 131, 0.32);
  background: rgba(47, 201, 131, 0.12);
  color: #b6ffd8;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.admin-muted {
  color: var(--muted);
}

.hero-layout,
.feature-card,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 650px;
  margin-bottom: 0.9rem;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: #d8e6fb;
}

.intro,
.section-heading p,
.feature-copy p,
.contact-copy p,
.contact-note,
.photo-card figcaption,
.form-status {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #96f0ff);
  color: #042130;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(48, 191, 234, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(48, 191, 234, 0.28);
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stat-list li,
.feature-card,
.contact-form,
.photo-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 36px var(--shadow);
}

.stat-list li {
  padding: 1rem;
  border-radius: 18px;
}

.stat-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.6rem;
}

.stat-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1.6rem;
}

.feature-stack {
  display: grid;
  gap: 2rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 28px;
}

.reverse {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.feature-copy ul {
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
}

.hero-photo img,
.feature-card img,
.gallery-grid img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-photo img {
  max-height: 560px;
  object-position: center top;
}

.feature-card img {
  max-height: 340px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-grid img {
  max-height: 280px;
}

.photo-card figcaption {
  padding: 0.9rem 1rem 1rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.65), rgba(10, 20, 37, 0.2));
}

.public-page .section-alt {
  background: linear-gradient(180deg, rgba(175, 206, 255, 0.22), rgba(255, 255, 255, 0.12));
}

.public-page .feature-card,
.public-page .stat-list li,
.public-page .photo-card,
.public-page .auth-card,
.public-page .auth-form-card,
.public-page .admin-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(79, 116, 168, 0.16);
}

.public-page .photo-card figcaption,
.public-page .intro,
.public-page .section-heading p,
.public-page .feature-copy p,
.public-page .contact-copy p,
.public-page .contact-note,
.public-page .form-status,
.public-page .auth-note,
.public-page .auth-user-name,
.public-page .site-nav a {
  color: var(--muted);
}

.public-page .button,
.public-page .header-link-button {
  box-shadow: 0 14px 26px rgba(47, 122, 233, 0.18);
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 24px;
}

.contact-form label {
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(151, 179, 214, 0.24);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(98, 212, 255, 0.35);
  border-color: var(--accent);
}

.contact-form button {
  width: fit-content;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #96f0ff);
  color: #042130;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form-status {
  min-height: 1.3rem;
  margin: 0.2rem 0 0;
}

.site-footer {
  border-top: 1px solid rgba(151, 179, 214, 0.12);
  padding: 1.4rem 0 2rem;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-layout p,
.footer-layout a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 920px) {
  .admin-page,
  .auth-layout,
  .admin-section-grid,
  .hero-layout,
  .feature-card,
  .reverse,
  .contact-layout,
  .blog-columns {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    max-height: 440px;
  }
}

@media (max-width: 720px) {
  .datetime-badge {
    top: 10.5rem;
  }

  .nav-bar,
  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-page,
  .travel-page {
    padding-top: 8.5rem;
  }

  .admin-page {
    padding-top: 8.5rem;
  }

  .travel-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .travel-photo-carousel {
    gap: 0.5rem;
  }

  .travel-photo-strip {
    gap: 0.5rem;
  }

  .travel-photo-arrow {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.6rem;
  }

  .utility-grid {
    grid-template-columns: 1fr;
  }

  .stat-list,
  .gallery-grid,
  .travel-notes {
    grid-template-columns: 1fr;
  }

  .travel-notes-wrap {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .lead {
    font-size: 1.15rem;
  }

  .hero,
  .section {
    padding: 3.5rem 0;
  }
}
