:root {
  --navy: #0d1733;
  --blue: #0b7fc8;
  --blue-dark: #0a68a2;
  --gold: #b18a39;
  --green: #20a38c;
  --text: #4d5766;
  --soft-bg: #f7f7f5;
  --card: #ffffff;
  --line: #e8e5df;
  --shadow: 0 14px 35px rgba(13, 23, 51, 0.08);
  --shadow-soft: 0 8px 24px rgba(13, 23, 51, 0.06);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft-bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--navy);
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
}

.account-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-email {
  font-size: 0.95rem;
  font-weight: 600;
  color: #667085;
}

.header-signout {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--navy);
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-signout:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.section-shell,
.hero-inner,
.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 36px;
  background:
    radial-gradient(circle at top center, rgba(11, 127, 200, 0.09), transparent 42%),
    linear-gradient(180deg, #fbfbfa 0%, #f6f6f3 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero h1 {
  margin-top: 10px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 700;
}

.hero h1 span {
  display: block;
  color: var(--blue);
  font-style: italic;
  font-weight: 600;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  color: #5f6978;
}

.trip-date {
  margin-top: 24px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px;
}

.hero-image-card {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-image-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.admin-section,
.process-section,
.destinations,
.vote-intro,
.vote {
  padding: 30px 0;
}

.admin-shell,
.process-shell,
.vote-shell {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 229, 223, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 30px;
}

.admin-header,
.process-shell,
.vote-intro-shell {
  text-align: center;
}

.admin-header h2,
.process-shell h2,
.vote-intro-shell h2,
.vote-shell h2,
.destinations h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.admin-header p,
.process-copy,
.vote-intro-shell p {
  max-width: 820px;
  margin: 14px auto 0;
  font-size: 1.1rem;
  color: #677282;
}

/* Admin Dashboard Styles */
.admin-summary {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.admin-summary-card {
  min-width: 180px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.summary-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.summary-value {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.result-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-card h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.result-card p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
}

.vote-bar-track {
  width: 100%;
  height: 12px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
}

.vote-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.45s ease;
}

.vote-percent {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.admin-table-wrap {
  margin-top: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfa 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.admin-table-header {
  margin-bottom: 18px;
  text-align: left;
}

.admin-table-header h3 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.admin-table-header p {
  color: #6b7280;
}

.admin-table-scroll {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table thead th {
  text-align: left;
  padding: 14px 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
}

.admin-table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid #f0ede7;
  color: #4d5766;
  font-size: 0.97rem;
}

.admin-table tbody tr:hover {
  background: rgba(11, 127, 200, 0.04);
}

/* Destinations Section */
.destinations h2 {
  text-align: center;
  margin-bottom: 28px;
}

.destination-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  background: transparent;
  padding: 28px 0;
}

.destination-card + .destination-card {
  border-top: 1px solid rgba(177, 138, 57, 0.12);
}

.destination-card.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.destination-card.reverse .destination-text {
  order: 2;
}

.destination-card.reverse .destination-image {
  order: 1;
}

.destination-text h3 {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  margin-bottom: 20px;
}

.destination-text h3 span {
  color: var(--blue);
  font-style: italic;
}

.destination-text h3 .green-accent {
  color: var(--green);
}

.quote {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-style: italic;
  margin-bottom: 22px;
}

.destination-text ul {
  margin: 0;
  padding-left: 24px;
}

.destination-text li {
  margin-bottom: 14px;
  font-size: 1.1rem;
  color: #586273;
}

.destination-image {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.destination-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Vote Intro Section */
.vote-intro-shell {
  padding: 54px 24px;
  background:
    radial-gradient(circle at center, rgba(11, 127, 200, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 229, 223, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.vote-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: white;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(11, 127, 200, 0.22);
}

.vote-jump {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(11, 127, 200, 0.2);
}

/* Vote Section */
.vote-shell {
  max-width: 840px;
}

.auth-section,
#voteForm {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-top: 22px;
  box-shadow: var(--shadow-soft);
}

/* Google Button - Full button with logo and text */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #747775;
  background: white;
  color: #1f1f1f;
  padding: 14px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: none;
}

.google-btn:hover {
  background: #f8faff;
  border-color: #1f1f1f;
}

.google-btn:active {
  background: #e9ecf3;
}

.google-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

#emailSignUpBtn,
#emailSignInBtn,
#voteForm button[type="submit"] {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: white;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#emailSignUpBtn:hover,
#emailSignInBtn:hover,
#voteForm button[type="submit"]:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.divider {
  text-align: center;
  margin: 24px 0;
  color: #7a8392;
  font-weight: 600;
  position: relative;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 40px);
  height: 1px;
  background: var(--line);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background: white;
  padding: 0 12px;
}

.email-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9dfe7;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #243041;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 127, 200, 0.1);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

#userStatus {
  margin-top: 16px;
  font-weight: 600;
  color: #637083;
}

.success-banner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  margin-top: 22px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(33, 17, 42, 0.46), rgba(33, 17, 42, 0.46)),
    url("images/thank-you.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.success-overlay {
  position: absolute;
  inset: 0;
}

.success-content {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 34px;
  text-align: center;
  color: white;
}

.success-content h3 {
  color: white;
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 14px;
}

.success-content p {
  max-width: 760px;
  font-size: 1.22rem;
}

.success-small {
  margin-top: 30px;
  font-size: 1.6rem;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* Back link for vote page */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-3px);
  text-decoration: underline;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 980px) {
  .hero-gallery,
  .results-grid,
  .destination-card,
  .destination-card.reverse {
    grid-template-columns: 1fr;
  }

  .destination-card.reverse .destination-text,
  .destination-card.reverse .destination-image {
    order: initial;
  }

  .destination-image img {
    aspect-ratio: 16 / 10;
  }

  .results-grid {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .admin-summary {
    justify-content: stretch;
  }

  .admin-summary-card {
    width: 100%;
  }

  .admin-table-wrap {
    padding: 16px;
  }

  .result-card h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .hero-inner,
  .admin-shell,
  .site-header-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 36px;
  }

  .site-header-inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 1.35rem;
  }

  .header-email {
    display: none;
  }

  .admin-shell,
  .process-shell,
  .vote-intro-shell,
  .vote-shell {
    padding: 22px 18px;
  }

  .auth-buttons {
    flex-direction: column;
  }

  .success-banner,
  .success-content {
    min-height: 340px;
  }

  .success-content h3 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .success-small {
    font-size: 1.2rem;
  }

  .result-card {
    padding: 18px 12px;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .vote-intro,
  .auth-section,
  #voteForm,
  .vote-jump {
    display: none;
  }

  .admin-section,
  .destinations,
  .process-section {
    break-inside: avoid;
  }
}