/*
Theme Name: Vidor
Author: Dudás Krisztián
Author URI: https://github.com/dude920228/
Description: Custom responsive landing page theme for Vidor guesthouse
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Text Domain: apartment-stay
*/

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --line: #e2f0bb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 2rem, var(--max-width)); margin: 0 auto; }
.section { padding: 3rem 0; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 .75rem; }
.section-subtitle { color: var(--muted); max-width: 700px; margin: 0 0 2rem; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.9);
}
.nav-wrap {
  display:flex; align-items:center; justify-content:space-between;
  min-height:72px; gap:1rem;
}
.brand { font-size:1.2rem; font-weight:700; letter-spacing:.04em; }
.menu-toggle {
  display:none; border:0; background:var(--surface); border-radius:12px;
  padding:.7rem .9rem; box-shadow:var(--shadow); cursor:pointer; font-size:1rem;
}
.nav { display:flex; align-items:center; gap:1.25rem; }
.nav a { color:var(--muted); font-weight:600; transition:color .2s ease; }
.nav a:hover, .nav a.active { color:var(--accent); }
.hero {
  padding: 5.5rem 0 4rem;
  background: linear-gradient(rgba(17,24,39,.45), rgba(17,24,39,.45)), var(--hero-image) center/cover no-repeat;
  color:white;
}
.hero-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:2rem; align-items:center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height:1.05; margin:0 0 1rem; }
.hero p { font-size:1.08rem; max-width:620px; margin:0 0 1.5rem; color:rgba(255,255,255,.92); }
.hero-actions { display:flex; flex-wrap:wrap; gap:1rem; }
.btn, .wpcf7-submit, .has-spinner {
  display:inline-flex; align-items:center; justify-content:center; min-height:48px;
  padding:.85rem 1.25rem; border-radius:999px; font-weight:700;
  transition:transform .2s ease, background .2s ease;
}
.btn:hover, .wpcf7-submit { transform: translateY(-1px); }
.btn-primary, .wpcf7-submit { background:var(--accent); color:white; border:none; cursor:pointer; }
.btn-primary:hover { background:var(--accent-dark); }
.btn-secondary { background:rgba(255,255,255,.14); color:white; border:1px solid rgba(255,255,255,.25); }
.hero-card {
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px); border-radius:var(--radius); padding:1.5rem; box-shadow:var(--shadow);
}
.hero-card h2 { margin-top:0; font-size:1.4rem; }
.hero-list { list-style:none; padding:0; margin:1rem 0 0; }
.hero-list li { padding:.6rem 0; border-bottom:1px solid rgba(255,255,255,.15); }
.hero-list li:last-child { border-bottom:0; }
.card-grid, .attraction-list { display:grid; grid-template-columns:repeat(3, 1fr); gap:1.5rem; }
.card {
  background:var(--surface); border-radius:var(--radius); padding:1.5rem;
  box-shadow:var(--shadow); border:3px solid var(--line);
}
.card h3 { margin-top:0; margin-bottom:.75rem; }
.card p { margin:0; color:var(--muted); }
.carousel {
  position:relative; overflow:hidden; border-radius:24px;
  box-shadow:var(--shadow); background:#ddd;
  border:3px solid var(--line);
}
.carousel-track { display:flex; transition:transform .45s ease; }
.slide { min-width:100%; position:relative; }
.slide img { margin-left: auto; margin-right: auto; max-height: 520px;}
.slide-caption {
  position:absolute; left:1rem; bottom:1rem; background:rgba(17,24,39,.65); color:white;
  padding:.8rem 1rem; border-radius:14px; max-width:calc(100% - 2rem);
}
.carousel-btn {
  position:absolute; top:50%; transform:translateY(-50%); z-index:2; border:0;
  width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.9);
  cursor:pointer; box-shadow:var(--shadow); font-size:1.2rem;
}
.carousel-btn.prev { left:1rem; }
.carousel-btn.next { right:1rem; }
.carousel-dots { display:flex; justify-content:center; gap:.6rem; padding:1rem 0 0; }
@media (max-width: 760px) {
  .carousel-dots {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 1rem 0 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .carousel-dots::-webkit-scrollbar {
    display: none;
  }

  .carousel-dots .dot {
    flex: 0 0 auto;
  }
}
.dot { width:11px; height:11px; border:0; border-radius:50%; background:#c7cdd7; cursor:pointer; }
.dot.active { background:var(--accent); }
.attraction-item {
  background:var(--surface); border:3px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow);
}
.attraction-item img { height:220px; width:100%; object-fit:cover; }
.attraction-body { padding:1.25rem; }
.attraction-body h3 { margin:0 0 .5rem; }
.attraction-body p { color:var(--muted); margin:0; }
.shuttle-wrap { display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:center; }
.shuttle-image { border-radius:24px; overflow:hidden; box-shadow:var(--shadow); }
.shuttle-image img { width:100%; height:100%; min-height:360px; object-fit:cover; }
.check-list { list-style:none; padding:0; margin:1.5rem 0 0; }
.check-list li { margin-bottom:.9rem; padding-left:1.8rem; position:relative; }
.check-list li::before {
  content:'✓'; position:absolute; left:0; top:0; color:var(--accent); font-weight:700;
}
.contact-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:2rem; }
.contact-box, .contact-form, .wpcf7-form {
  background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow);
  border:3px solid var(--line); padding:1.5rem;
}
.contact-box p { color:var(--muted); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field { display:flex; flex-direction:column; gap:.45rem; margin-bottom:1rem; }
.field.full { grid-column:1 / -1; }
label { font-weight:600; }
input, textarea {
  width:100%; border:1px solid #d1d5db; border-radius:14px; padding:.9rem 1rem;
  font:inherit; background:white;
}
textarea { min-height:140px; resize:vertical; }
input:focus, textarea:focus {
  outline:2px solid rgba(37,99,235,.2); border-color:var(--accent);
}
.form-note { margin-top:1rem; color:var(--muted); font-size:.95rem; }
.notice {
  margin: 0 0 1rem; padding:.9rem 1rem; border-radius:14px; border:1px solid transparent;
}
.notice-success { background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.notice-error { background:#fef2f2; color:#991b1b; border-color:#fecaca; }
.site-footer { padding:2rem 0 3rem; color:var(--muted); text-align:center; }

@media (max-width: 960px) {
  .hero-grid, .shuttle-wrap, .contact-grid, .card-grid, .attraction-list { grid-template-columns:1fr; }
  .slide img { height:420px; }
}

@media (max-width: 760px) {
  .menu-toggle { display:inline-flex; }
  .nav {
    position:absolute; top:72px; left:0; right:0; background:white; border-bottom:3px solid var(--line);
    box-shadow:0 15px 35px rgba(0,0,0,.08); flex-direction:column; align-items:flex-start;
    padding:1rem; display:none;
  }
  .nav.open { display:flex; }
  .form-grid { grid-template-columns:1fr; }
  .hero { padding-top:4.5rem; }
  .slide img { height:300px; }
  .carousel-btn { width:42px; height:42px; }
}

.shuttle-content {
  display: none !important;
}
.page-content > *:first-child {
  margin-top: 0;
}

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

.page-content .wp-block-gallery,
.page-content .blocks-gallery-grid {
  margin-top: 1.5rem;
}

.gallery-page {
  max-width: 1200px;
}

.room-galleries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.room-tile {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-tile:hover {
  transform: translateY(-4px);
}

.room-tile__title {
  padding: 1rem 1rem 0.75rem;
  margin: 0;
  font-size: 1rem;
}

.room-tile__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 0 1rem 1rem;
}

.room-tile__grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.room-tile__more {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.room-galleries > h2,
.room-galleries > .wp-block-gallery,
.room-galleries > .blocks-gallery-grid {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.gallery-modal.is-open {
  display: block;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.82);
}

.gallery-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1100px);
  margin: 3rem auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.08);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 3;
}

.gallery-modal__header {
  padding: 1.25rem 1.5rem 0.75rem;
}

.gallery-modal__header h2 {
  margin: 0;
  padding-right: 3rem;
}

.gallery-modal__body {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.gallery-modal__image-wrap {
  background: #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-modal__image-wrap img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.gallery-modal__nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.25rem;
  justify-self: center;
}

.gallery-modal__footer {
  padding: 0 1.5rem 1.5rem;
}

.gallery-modal__counter {
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.gallery-modal__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-modal__thumbs img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  flex: 0 0 auto;
}

.gallery-modal__thumbs img.is-active {
  border-color: var(--accent);
}

@media (max-width: 960px) {
  .room-galleries {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-tile__grid img {
    height: 150px;
  }
}

@media (max-width: 760px) {
  .room-galleries {
    grid-template-columns: 1fr;
  }

  .gallery-modal__dialog {
    width: min(100% - 1rem, 1000px);
    margin: 1rem auto;
  }

  .gallery-modal__body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .gallery-modal__nav--prev {
    left: 0.75rem;
  }

  .gallery-modal__nav--next {
    right: 0.75rem;
  }

  .gallery-modal__image-wrap img {
    max-height: 62vh;
  }

  .room-tile__grid img {
    height: 140px;
  }
}
.link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.attraction-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1f2937;
}

.attraction-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.attraction-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
          to top,
          rgba(17, 24, 39, 0.78) 0%,
          rgba(17, 24, 39, 0.35) 45%,
          rgba(17, 24, 39, 0.18) 100%
  );
}

.attraction-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.attraction-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 900px;
}

.attraction-content {
  max-width: 900px;
}

.attraction-content > *:first-child {
  margin-top: 0;
}

.attraction-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

@media (max-width: 760px) {
  .attraction-hero {
    min-height: 320px;
  }

  .attraction-hero__content {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
}
.attraction-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1f2937;
}

.attraction-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.room-tile {
  display: block;
  width: 100%;
  text-align: left;
  border: 3px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-tile:hover {
  transform: translateY(-4px);
}

.room-tile__content {
  padding: 1rem;
}

.room-tile__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.room-tile__description {
  margin: 0 0 1rem;
  color: var(--muted);
}

.room-tile__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.room-tile__grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.room-tile__more {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.room-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.room-gallery-modal.is-open {
  display: block;
}

.room-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.82);
}

.room-gallery-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1100px);
  margin: 0.5rem auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.room-gallery-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.08);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 3;
}

.room-gallery-modal__header {
  padding: 1.25rem 1.5rem 0.75rem;
}

.room-gallery-modal__header h3 {
  margin: 0 0 0.5rem;
  padding-right: 3rem;
}

.room-gallery-modal__header p {
  margin: 0;
  color: var(--muted);
}

.room-gallery-modal__body {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.room-gallery-modal__image-wrap {
  background: #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
}

.room-gallery-modal__image-wrap img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.room-gallery-modal__nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.25rem;
  justify-self: center;
}

.room-gallery-modal__footer {
  padding: 0 1.5rem 1.5rem;
}

.room-gallery-modal__counter {
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.room-gallery-modal__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.room-gallery-modal__thumbs::-webkit-scrollbar {
  display: none;
}

.room-gallery-modal__thumbs img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  flex: 0 0 auto;
}

.room-gallery-modal__thumbs img.is-active {
  border-color: var(--accent);
}

@media (max-width: 960px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-tile__grid img {
    height: 145px;
  }
}

@media (max-width: 760px) {
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .room-gallery-modal__dialog {
    width: min(100% - 1rem, 1000px);
    margin: 1rem auto;
  }

  .room-gallery-modal__body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .room-gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .room-gallery-modal__nav--prev {
    left: 0.75rem;
  }

  .room-gallery-modal__nav--next {
    right: 0.75rem;
  }

  .room-gallery-modal__image-wrap img {
    max-height: 62vh;
  }

  .room-tile__grid img {
    height: 130px;
  }
}

.g-recaptcha {
  margin: 1rem 0 1.25rem;
}