/* ========================================
   TourTravel Theme Styles
   GetYourGuide-inspired tour & travel theme
   ======================================== */

:root {
  --color-accent: #ff5533;
  --color-accent-dark: #e64a2b;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-background: #ffffff;
  --color-background-light: #f8f9fa;
  --color-border: #e5e7eb;
  --color-star: #f59e0b;
  --color-success: #10b981;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --container-width: 1200px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

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

.text-center {
  text-align: center;
}

.bg-light {
  background-color: var(--color-background-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  text-decoration: none;
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
}

.custom-logo {
  max-height: 44px;
  width: auto;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
}

.main-navigation a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: #1f2937;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.search-field {
  flex: 1 1 200px;
}

.hero-search input[type="search"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.hero-search input[type="search"]:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.link-arrow {
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.category-card-image,
.category-card-image img,
.category-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 60%);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  color: #ffffff;
}

.category-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.category-card-count {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Tour Grid */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tour-card {
  background-color: var(--color-background);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tour-card-link {
  display: block;
  color: inherit;
}

.tour-card-link:hover {
  text-decoration: none;
}

.tour-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.tour-card-image img,
.tour-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background-light);
  color: var(--color-text-muted);
}

.tour-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.tour-card-body {
  padding: 1rem;
}

.tour-card-location {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.tour-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.tour-card-duration {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.tour-card-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.rating-stars {
  color: var(--color-star);
}

.rating-value {
  font-weight: 700;
  color: var(--color-text);
}

.rating-count {
  color: var(--color-text-muted);
}

.tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.tour-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.old-price {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.current-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
}

.price-unit,
.price-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Trust Section */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  background-color: #ffffff;
  border-radius: 50%;
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.trust-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* CTA */
.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
}

.cta-box h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  margin: 0;
  opacity: 0.85;
}

/* Archive / Page */
.archive-header,
.page-header {
  margin-bottom: 2rem;
}

.archive-title,
.page-title {
  font-size: 2rem;
  font-weight: 800;
}

.archive-description {
  color: var(--color-text-muted);
  max-width: 700px;
}

/* Single Tour */
.tour-single {
  padding-bottom: 4rem;
}

.tour-hero {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.tour-hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.tour-badge-hero {
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.875rem;
  padding: 0.375rem 0.875rem;
}

.tour-single-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  margin-top: 2rem;
}

.tour-single-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tour-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.tour-meta-location {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tour-meta-location a {
  color: inherit;
}

.tour-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.tour-content {
  font-size: 1rem;
  line-height: 1.7;
}

.tour-content h2,
.tour-content h3 {
  margin-top: 2rem;
}

.tour-types {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.tour-types a {
  color: var(--color-text-muted);
}

/* Booking Card */
.booking-card {
  position: sticky;
  top: 96px;
  padding: 1.5rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.booking-price {
  margin-bottom: 1.25rem;
}

.booking-price .old-price {
  display: block;
  margin-bottom: 0.25rem;
}

.booking-price .current-price {
  font-size: 1.75rem;
}

.booking-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.booking-detail span {
  color: var(--color-text-muted);
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.page-numbers.current,
.nav-links span.current {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-tagline {
  max-width: 320px;
  margin-top: 1rem;
}

.footer-menu h4,
.footer-contact h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: #d1d5db;
}

.footer-menu a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.875rem;
}

/* 404 */
.section-404 {
  padding: 6rem 0;
}

/* WordPress defaults */
.wp-block-image img {
  border-radius: var(--radius);
}

.alignwide {
  max-width: var(--container-width);
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Responsive */
@media (max-width: 992px) {
  .tour-single-grid {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: static;
  }

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

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
  }

  .main-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search .btn {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-box {
    text-align: center;
    justify-content: center;
  }
}
