:root {
  --primary: #000099;
  --primary-light: #0066FF;
  --accent: #FF6600;
  --accent-light: #FF9900;
  --danger: #CC0033;
  --success: #009900;
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-light: #555;
  --border: #d2dfec;
  --header-bg: #000099;
  --header-text: #fff;
  --footer-bg: #000066;
  --mountains: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><path d="M0 220 L25 180 L45 200 L70 155 L95 185 L115 165 L145 130 L175 165 L200 145 L230 110 L255 145 L280 130 L300 160 L300 300 L0 300 Z" fill="%23D0DCE8" opacity="0.35"/></svg>');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 450;
  background-color: var(--bg);
  background-image: var(--mountains);
  background-repeat: repeat;
  background-size: 300px 300px;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.site-header {
  background: #fff;
  color: var(--text);
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 55px;
  max-width: 100%;
  object-fit: contain;
}

/* Navigation inline */
.site-nav {
  background: none;
  border-top: none;
}

.nav-inner {
  display: flex;
  gap: 0;
  padding: 0;
}

.nav-inner a {
  color: var(--text);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border-radius: 6px;
  border-right: none;
}

.nav-inner a:last-child {
  border-right: none;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: var(--accent);
  color: #fff;
}

/* Main content */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 5rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
  background: url('hero_pic.jpg') center / cover no-repeat;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
}

.hero * { position: relative; z-index: 1; }

.hero h2 { font-size: 2.4rem; margin-bottom: 0.5rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); font-weight: 700; }
.hero p { font-size: 1.15rem; opacity: 0.95; max-width: 600px; margin: 0 auto; color: #FFE0B2; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* Cards grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--accent-light);
}

.review-card:hover h3 a { color: var(--accent); }

.review-card-img-link {
  display: block;
  overflow: hidden;
  line-height: 0;
}

.review-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--border);
  transition: transform 0.3s ease;
}

.review-card:hover .review-card-img {
  transform: scale(1.05);
}

.review-card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.review-card-body h3 a {
  color: var(--primary);
}

.review-card-body h3 a:hover {
  color: var(--accent);
}

.review-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-meta span {
  display: inline-block;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-valle { background: #fff3e6; color: var(--accent); border: 1px solid #ffd699; }
.badge-diff-t { background: #e6f7e6; color: #006600; }
.badge-diff-e { background: #ffe6e6; color: #cc0000; }
.badge-diff-ee { background: #ffcccc; color: #990000; }
.badge-diff-t-e { background: #fff9cc; color: #996600; border: 1px solid #f0d060; }
.badge-diff-e-ee { background: #ffd9d9; color: #b31a1a; }
.badge-diff-m-f { background: #f0e6ff; color: #6600cc; }

.review-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.85rem * 1.5 * 2);
}

.review-card-footer {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.8rem;
}

.filters select,
.filters input {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,102,0,0.15);
}

/* Review meta box */
.review-meta-box {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-weight: 600;
}

.meta-value {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

/* Single review page */
.review-header {
  margin-bottom: 2rem;
}

.review-header h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.review-info {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.review-info dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-weight: 600;
}

.review-info dd {
  font-size: 0.9rem;
  margin-top: 0.2rem;
  color: var(--text);
}

.review-content {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid var(--border);
  line-height: 1.8;
}

.review-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-content p {
  margin-bottom: 1rem;
}

/* Review navigation prev/next */
.review-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.review-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  max-width: 48%;
  line-height: 1.3;
}

.review-nav-link:hover {
  border-color: var(--accent);
  background: #fffaf5;
  color: var(--text);
}

.review-nav-prev { text-align: left; }
.review-nav-next { text-align: right; }

.review-nav-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.back-link:hover { color: var(--primary); }

/* Static pages */
.static-page {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.static-page h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.static-page p {
  margin-bottom: 1rem;
}

.static-page img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin-top: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent); color: #fff; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  margin-top: auto;
}

.site-footer a { color: var(--accent-light); }
.site-footer a:hover { color: #fff; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show { opacity: 0.8; }
.back-to-top:hover { opacity: 1; background: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .header-main { flex-wrap: wrap; justify-content: center; padding: 0.6rem 1rem; gap: 0.3rem; }
  .header-logo img { height: 45px; }
  .nav-inner { flex-wrap: wrap; justify-content: center; }
  .nav-inner a { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .main-content { padding: 0 1rem; margin: 1rem auto; }
  .hero { padding: 3rem 1rem; min-height: 240px; }
  .hero h2 { font-size: 1.6rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-info { grid-template-columns: 1fr; }
  .review-content { padding: 1rem; }
  .static-page { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .header-main { flex-direction: column; text-align: center; }
  .header-logo img { height: 40px; }
  .nav-inner a { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card-img { height: 160px; }
}
