/*
Theme Name: Los Gallardos Resort
Theme URI: https://campinglosgallardos.com/
Author: OpenAI Codex
Description: A fresh resort-style WordPress theme for Camping Los Gallardos Leisure, with Polylang language support, Thelis Resa reservation bar integration, WooCommerce, and Events Calendar styling.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: los-gallardos-resort
Tags: custom-logo, custom-menu, featured-images, translation-ready, e-commerce, blog
*/

:root {
  --lgr-green: #245b42;
  --lgr-green-dark: #173b2b;
  --lgr-green-soft: #e8f0e7;
  --lgr-blue: #217c98;
  --lgr-sand: #f6efe2;
  --lgr-terracotta: #c76b42;
  --lgr-ink: #16251f;
  --lgr-muted: #6f7b74;
  --lgr-page: #fbfaf6;
  --lgr-white: #fff;
  --lgr-shadow: 0 18px 42px rgba(32, 51, 43, 0.12);
  --lgr-wrap: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--lgr-ink);
  background: var(--lgr-page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--lgr-terracotta);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

.lgr-wrap {
  width: var(--lgr-wrap);
  margin: 0 auto;
}

.lgr-topbar {
  background: var(--lgr-green);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.lgr-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
}

.lgr-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(36, 91, 66, 0.12);
  backdrop-filter: blur(18px);
}

.lgr-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 28px;
}

.lgr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  color: var(--lgr-green);
  font-weight: 900;
  text-decoration: none;
}

.lgr-brand img {
  max-width: 170px;
  max-height: 62px;
  object-fit: contain;
}

.lgr-brand__text {
  display: none;
}

.lgr-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lgr-menu a,
.lgr-menu .ubermenu-target {
  color: #31443a;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

.lgr-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.lgr-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid rgba(36, 91, 66, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #31443a;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.lgr-lang.is-active,
.current-lang .lgr-lang {
  background: var(--lgr-green);
  border-color: var(--lgr-green);
  color: #fff;
}

.lgr-button,
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.tribe-common .tribe-common-c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--lgr-terracotta);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.lgr-button--ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.lgr-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--lgr-green);
}

.lgr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 43, 32, 0.82), rgba(18, 43, 32, 0.34) 48%, rgba(18, 43, 32, 0.12)),
    var(--lgr-hero-image, none) center / cover no-repeat;
  transform: scale(1.02);
}

.lgr-hero__content {
  position: relative;
  z-index: 2;
  padding: 76px 0 126px;
  color: #fff;
}

.lgr-eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff6e8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lgr-hero h1 {
  max-width: 760px;
  margin: 22px 0 20px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.98;
}

.lgr-hero p {
  max-width: 640px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.lgr-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lgr-reservation {
  position: relative;
  z-index: 5;
  width: var(--lgr-wrap);
  margin: 18px auto 34px;
}

.home .lgr-reservation {
  margin-top: -72px;
}

.lgr-bottom-banner {
  width: 100%;
  overflow: hidden;
  background: var(--lgr-green-soft);
}

.lgr-bottom-banner img {
  width: 100%;
  display: block;
}

.lgr-reservation__inner {
  min-height: 92px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(36, 91, 66, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(26, 46, 36, 0.22);
}

.lgr-reservation thr-search-engine,
.lgr-reservation iframe {
  display: block;
  width: 100%;
}

.lgr-booking-fallback {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
}

.lgr-booking-fallback__field {
  min-height: 64px;
  padding: 10px 14px;
  background: #f8faf7;
  border: 1px solid rgba(36, 91, 66, 0.12);
  border-radius: 8px;
}

.lgr-booking-fallback__field span {
  display: block;
  color: var(--lgr-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lgr-booking-fallback__field strong {
  color: #21372b;
  font-size: 17px;
}

.lgr-section {
  padding: 74px 0;
}

.lgr-section--tight {
  padding-top: 34px;
}

.lgr-section--sand {
  background: var(--lgr-sand);
}

.lgr-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.lgr-section h2,
.lgr-entry-title {
  margin: 0 0 18px;
  color: var(--lgr-green);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
}

.lgr-lede {
  color: var(--lgr-muted);
  font-size: 18px;
}

.lgr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.lgr-stat {
  padding: 20px;
  border-radius: 8px;
  background: var(--lgr-green-soft);
}

.lgr-stat strong {
  display: block;
  color: var(--lgr-green);
  font-size: 28px;
  line-height: 1.1;
}

.lgr-stat span {
  color: var(--lgr-muted);
  font-weight: 800;
}

.lgr-cards,
.lgr-post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lgr-card,
.lgr-post-card,
.lgr-content-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--lgr-shadow);
}

.lgr-card img,
.lgr-post-card img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}

.lgr-card__body,
.lgr-post-card__body,
.lgr-content-card {
  padding: 22px;
}

.lgr-card h3,
.lgr-post-card h3 {
  margin: 0 0 10px;
  color: var(--lgr-green);
  font-size: 22px;
  line-height: 1.18;
}

.lgr-card p,
.lgr-post-card p {
  color: var(--lgr-muted);
}

.lgr-updates-head {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.lgr-post-card__meta {
  color: var(--lgr-terracotta);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lgr-main {
  min-height: 50vh;
}

.lgr-page-header {
  padding: 66px 0 34px;
  background: var(--lgr-sand);
}

.lgr-content {
  padding: 54px 0 74px;
}

.lgr-content-card + .lgr-content-card {
  margin-top: 24px;
}

.lgr-entry-meta {
  color: var(--lgr-muted);
  font-size: 14px;
}

.lgr-footer {
  background: var(--lgr-green);
  color: rgba(255, 255, 255, 0.82);
  padding: 38px 0;
}

.lgr-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.lgr-footer a,
.lgr-footer strong {
  color: #fff;
}

.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.woocommerce ul.products li.product {
  width: auto;
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--lgr-shadow);
}

.tribe-events,
.tribe-common {
  --tec-color-accent-primary: var(--lgr-terracotta);
  --tec-color-link-primary: var(--lgr-green);
  --tec-font-family-sans-serif: Inter, "Segoe UI", Arial, sans-serif;
}

.wpcf7 input,
.wpcf7 textarea,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  width: 100%;
  border: 1px solid rgba(36, 91, 66, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
}

@media (max-width: 980px) {
  :root {
    --lgr-wrap: min(100% - 32px, 760px);
  }

  .lgr-nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .lgr-menu {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .lgr-split,
  .lgr-updates-head {
    grid-template-columns: 1fr;
    display: grid;
    gap: 24px;
  }

  .lgr-cards,
  .lgr-post-grid,
  .woocommerce .products ul,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .lgr-booking-fallback {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lgr-topbar__inner,
  .lgr-footer__inner {
    display: block;
  }

  .lgr-brand {
    min-width: 0;
  }

  .lgr-brand img {
    max-width: 132px;
  }

  .lgr-header-actions {
    gap: 4px;
  }

  .lgr-lang {
    min-width: 34px;
    min-height: 34px;
    font-size: 12px;
  }

  .lgr-hero {
    min-height: 500px;
  }

  .lgr-hero__content {
    padding-bottom: 94px;
  }

  .lgr-cards,
  .lgr-post-grid,
  .lgr-stats,
  .lgr-booking-fallback,
  .woocommerce .products ul,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .home .lgr-reservation {
    margin-top: -48px;
  }

}
