/*
Theme Name: Slovenia Explorer
Theme URI: http://visit-slovenia.eu
Author: Visit Slovenia
Description: Independent travel guide and database for Slovenia
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vs-travel
*/

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

:root {
  --clr-forest: #2D6A4F;
  --clr-lake: #1B4F72;
  --clr-warmwhite: #FAF8F5;
  --clr-slate: #3A3A3A;
  --clr-gold: #C4941A;
  --clr-forest-light: #E8F5E9;
  --clr-lake-light: #E3F2FD;
  --vs-container: 1100px;
  --vs-radius: 4px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-weight: 400;
  color: var(--clr-slate);
  background: var(--clr-warmwhite);
  line-height: 1.7;
}

a { color: var(--clr-lake); text-decoration: none; }
a:hover { color: var(--clr-forest); }

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--clr-slate);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }

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

/* === Layout === */
.vs-wrap {
  max-width: var(--vs-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Masthead === */
.vs-masthead {
  background: var(--clr-warmwhite);
  border-bottom: 3px solid var(--clr-forest);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.vs-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vs-brand img {
  height: 50px;
  width: auto;
}

.vs-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.vs-nav a {
  color: var(--clr-slate);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.vs-nav a:hover {
  color: var(--clr-forest);
}

.vs-ham-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.vs-ham-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-slate);
  margin: 5px 0;
  transition: all 0.3s;
}

/* === Breadcrumbs === */
.vs-breadcrumbs {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}

.vs-breadcrumbs a { color: var(--clr-lake); }
.vs-breadcrumbs a:hover { color: var(--clr-forest); }
.vs-bc-sep { margin: 0 0.3rem; color: #ccc; }

/* === Main Content === */
.vs-main {
  padding: 2rem 0;
  min-height: 60vh;
}

.vs-main > .vs-wrap { padding-top: 0; }

/* === Hero (front page) === */
.vs-hero {
  background-size: cover;
  background-position: center;
  background: var(--clr-forest);
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.vs-hero-overlay {
  width: 100%;
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(45,106,79,0.92) 0%, rgba(27,79,114,0.88) 100%);
}

.vs-hero-title {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 600;
  max-width: 700px;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.vs-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  font-weight: 300;
}

/* === Section Headings === */
.vs-section { padding: 3rem 0; }

.vs-section-heading {
  text-align: center;
  font-size: 1.5rem;
  color: var(--clr-lake);
  margin-bottom: 2rem;
  position: relative;
}

.vs-section-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--clr-gold);
  margin: 0.6rem auto 0;
}

/* === Database Tiles === */
.vs-db-tiles { background: #fff; }

.vs-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.vs-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  border: 2px solid #e8e5e0;
  border-radius: var(--vs-radius);
  text-align: center;
  color: var(--clr-slate);
  transition: border-color 0.2s, background 0.2s;
}

.vs-tile:hover {
  border-color: var(--clr-forest);
  background: var(--clr-forest-light);
  color: var(--clr-slate);
}

.vs-tile-icon {
  color: var(--clr-forest);
  margin-bottom: 0.8rem;
}

.vs-tile-label {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.vs-tile-count {
  font-size: 0.82rem;
  font-weight: 300;
  color: #888;
}

/* === Live Conditions Strip === */
.vs-conditions-strip {
  background: var(--clr-lake);
  color: #fff;
  padding: 2rem 0;
}

.vs-conditions-strip .vs-section-heading {
  color: #fff;
}

.vs-conditions-strip .vs-section-heading::after {
  background: var(--clr-gold);
}

.vs-conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.vs-condition-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.vs-condition-label {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.vs-condition-temp {
  font-size: 2rem;
  font-weight: 600;
}

.vs-condition-desc {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.8;
}

.vs-conditions-link {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.vs-conditions-link a { color: var(--clr-gold); }
.vs-conditions-link a:hover { color: #fff; }

/* === Latest Guides === */
.vs-latest-guides { background: var(--clr-warmwhite); }

.vs-no-content {
  text-align: center;
  color: #888;
  grid-column: 1 / -1;
}

/* === Vipava Spotlight === */
.vs-vipava-spotlight {
  background: linear-gradient(135deg, var(--clr-forest-light) 0%, #faf8f5 100%);
}

.vs-spotlight-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.vs-spotlight-inner h2 {
  color: var(--clr-forest);
  font-size: 1.8rem;
}

.vs-spotlight-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--clr-lake);
  font-style: italic;
  margin-bottom: 1rem;
}

.vs-btn {
  display: inline-block;
  background: var(--clr-forest);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: var(--vs-radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.vs-btn:hover {
  background: var(--clr-lake);
  color: #fff;
}

/* === Entry / Posts === */
.vs-entry { margin-bottom: 3rem; }
.vs-entry-header { margin-bottom: 1.5rem; }

.vs-entry-thumb {
  margin-bottom: 1.5rem;
  border-radius: var(--vs-radius);
  overflow: hidden;
}

.vs-entry-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.vs-entry-content { font-size: 1.05rem; }
.vs-entry-content p { margin-bottom: 1.2rem; }
.vs-entry-content ul, .vs-entry-content ol { margin: 0 0 1.2rem 1.5rem; }
.vs-entry-content li { margin-bottom: 0.4rem; }
.vs-entry-content h2 { margin-top: 2rem; }
.vs-entry-content h3 { margin-top: 1.5rem; }

.vs-entry-meta {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
}

/* === Facts Box (CPT single sidebar) === */
.vs-facts {
  background: #fff;
  border: 1px solid #e0ddd8;
  border-left: 4px solid var(--clr-forest);
  border-radius: var(--vs-radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  float: right;
  width: 320px;
  margin-left: 2rem;
}

.vs-facts-title {
  font-size: 1rem;
  color: var(--clr-forest);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.vs-facts-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.9rem;
}

.vs-facts-list dt {
  font-weight: 600;
  color: #555;
}

.vs-facts-list dd {
  color: var(--clr-slate);
}

/* === Map Embed === */
.vs-map-embed {
  margin: 2rem 0;
  border-radius: var(--vs-radius);
  overflow: hidden;
  border: 1px solid #e0ddd8;
  clear: both;
}

.vs-map-embed iframe { display: block; }

/* === Source Attribution === */
.vs-source {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0ddd8;
  clear: both;
}

/* === Region Tags === */
.vs-region-tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* === Cards === */
.vs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.vs-card {
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: var(--vs-radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.vs-card:hover { border-color: var(--clr-forest); }

.vs-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.vs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-card-body { padding: 1rem 1.2rem; }

.vs-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.vs-card-title a { color: var(--clr-slate); }
.vs-card-title a:hover { color: var(--clr-forest); }

.vs-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.vs-card-meta {
  display: inline-block;
  font-size: 0.8rem;
  color: #777;
  margin-right: 0.5rem;
}

.vs-card-region {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.4rem;
}

/* === Badge === */
.vs-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vs-badge--easy { background: #d4edda; color: #155724; }
.vs-badge--medium { background: #fff3cd; color: #856404; }
.vs-badge--hard { background: #f8d7da; color: #721c24; }
.vs-badge--type { background: var(--clr-lake-light); color: var(--clr-lake); }

/* === Archive Header === */
.vs-listing-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--clr-forest-light);
}

.vs-listing-title {
  font-size: 2rem;
  color: var(--clr-lake);
}

.vs-listing-desc {
  font-size: 1.05rem;
  color: #555;
  margin-top: 0.8rem;
  line-height: 1.7;
}

/* === Filter Bar === */
.vs-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: var(--vs-radius);
}

.vs-filter-search {
  flex: 1 1 200px;
  padding: 0.5rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--vs-radius);
  font-family: inherit;
  font-size: 0.9rem;
}

.vs-filter-search:focus {
  outline: none;
  border-color: var(--clr-forest);
}

.vs-filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.vs-filter-select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: var(--vs-radius);
  font-family: inherit;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

.vs-filter-count {
  font-size: 0.85rem;
  color: #888;
  margin-left: auto;
}

/* === Search Form === */
.vs-search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 500px;
}

.vs-search-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--vs-radius);
  font-family: inherit;
  font-size: 1rem;
}

.vs-search-input:focus {
  outline: none;
  border-color: var(--clr-forest);
}

.vs-search-btn {
  background: var(--clr-forest);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--vs-radius);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.vs-search-btn:hover {
  background: var(--clr-lake);
}

/* === Footer === */
.vs-footer {
  background: var(--clr-lake);
  color: #cdd9e3;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}

.vs-footer a { color: #fff; }
.vs-footer a:hover { color: var(--clr-gold); }

.vs-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.vs-footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.vs-footer-col ul {
  list-style: none;
  line-height: 1.9;
}

.vs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: #9bb5c9;
}

/* === Pagination === */
.vs-pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.vs-pagination a, .vs-pagination span {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--vs-radius);
  font-size: 0.9rem;
}

.vs-pagination .current {
  background: var(--clr-forest);
  color: #fff;
  border-color: var(--clr-forest);
}

/* === 404 === */
.vs-404 ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.vs-404 ul li { margin-bottom: 0.5rem; }
.vs-404 ul li a { color: var(--clr-forest); font-weight: 600; }

/* === Weather Table === */
.vs-weather-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.vs-weather-table th,
.vs-weather-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0ddd8;
}

.vs-weather-table th {
  background: var(--clr-forest);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vs-weather-table tr:nth-child(even) {
  background: #fff;
}

.vs-weather-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vs-weather-temp {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--clr-forest);
}

.vs-weather-desc {
  display: block;
  font-size: 0.8rem;
  color: #888;
}

.vs-weather-updated {
  font-size: 0.8rem;
  color: #999;
}

.vs-weather-source {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
}

.vs-weather-source a {
  color: var(--clr-lake);
}

.vs-weather-error {
  padding: 1.5rem;
  background: #fff3cd;
  border-left: 4px solid var(--clr-gold);
  color: var(--clr-slate);
}

/* Weather editorial */
.vs-weather-editorial {
  margin-top: 3rem;
}

.vs-weather-editorial h2 {
  color: var(--clr-forest);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--clr-forest-light);
}

.vs-weather-regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.vs-weather-region {
  background: #fff;
  padding: 1.5rem;
  border-left: 3px solid var(--clr-forest);
}

.vs-weather-region h3 {
  color: var(--clr-lake);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.vs-weather-region p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.vs-weather-safety {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.vs-weather-safety li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  border-bottom: 1px solid #eee;
}

.vs-weather-safety li::before {
  content: "\26A0";
  position: absolute;
  left: 0;
  color: var(--clr-gold);
}

.vs-page-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

/* === Spa Comparison Table === */
.vs-spa-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
}

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

.vs-spa-table th,
.vs-spa-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0ddd8;
  font-size: 0.9rem;
}

.vs-spa-table th {
  background: var(--clr-forest);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.vs-spa-table th.vs-sortable::after {
  content: ' \2195';
  opacity: 0.5;
}

.vs-spa-table th.vs-sortable[data-dir="asc"]::after {
  content: ' \2191';
  opacity: 1;
}

.vs-spa-table th.vs-sortable[data-dir="desc"]::after {
  content: ' \2193';
  opacity: 1;
}

.vs-spa-table tr:nth-child(even) {
  background: #fff;
}

.vs-spa-table tr:hover {
  background: var(--clr-forest-light);
}

.vs-spa-table a {
  color: var(--clr-lake);
  font-weight: 600;
}

.vs-btn--sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .vs-nav { display: none; }
  .vs-ham-btn { display: block; }
  .vs-nav.vs-nav--open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-warmwhite);
    border-bottom: 3px solid var(--clr-forest);
    padding: 1rem 1.5rem;
    z-index: 100;
  }
  .vs-nav.vs-nav--open ul {
    flex-direction: column;
    gap: 0.8rem;
  }
  .vs-masthead-inner { position: relative; }

  h1 { font-size: 1.6rem; }
  .vs-hero-title { font-size: 1.7rem; }

  .vs-tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-conditions-grid { grid-template-columns: 1fr; gap: 1rem; }
  .vs-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .vs-facts {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 1.5rem;
  }

  .vs-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .vs-weather-table {
    display: block;
    overflow-x: auto;
  }

  .vs-weather-regions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vs-tiles-grid { grid-template-columns: 1fr; }
  .vs-card-grid { grid-template-columns: 1fr; }
  .vs-hero {
  background-size: cover;
  background-position: center; min-height: 260px; }
  .vs-hero-overlay { padding: 2.5rem 0; }
}

/* === Author Box === */
.vs-author-box {
  display: flex;
  gap: 1.25rem;
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-top: 3px solid #2D6A4F;
  background: #f7f9f7;
}
.vs-author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.vs-author-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #3A3A3A;
}
.vs-author-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

/* === FAQ Section === */
.vs-faq-section {
  margin: 2.5rem 0 1rem;
}
.vs-faq-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1B4F72;
}
.vs-faq-section h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.4rem;
  color: #2D6A4F;
  font-weight: 600;
}
.vs-faq-section p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .vs-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* === Archive Hero Banners === */
.vs-listing-hero {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  position: relative;
}
.vs-listing-hero-overlay {
  width: 100%;
  padding: 2.5rem 0 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.vs-listing-hero .vs-listing-title {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}
.vs-listing-hero .vs-listing-desc {
  color: rgba(255,255,255,0.9);
  margin-top: 0.5rem;
}
.vs-listing-hero .vs-listing-desc p {
  color: rgba(255,255,255,0.9);
}
