/* ============================================
   PRAGUE PHOTO WALK - PAGE-SPECIFIC STYLESHEET
   ============================================
   Common styles (fonts, nav, footer) in common.css
   This file contains only photowalk-specific styles
   ============================================ */

/* ============================================
   HEADER / HERO SECTION (page-specific)
   ============================================ */
header {
  background: url('../../media/gallery/prague-header.webp') center 75% / cover no-repeat;
}

/* ============================================
   PAGE-SPECIFIC SECTIONS
   ============================================ */

/* ============================================
   ABOUT SECTION - Enhanced styling
   ============================================ */
.about {
  padding-top: 40px;
}

/* Section subtitles */
section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

/* Decorative line under h2 */
section > h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin-top: 15px;
}

/* About Me specific styling */
section:has(> h2:first-child) p {
  font-size: 1.15em;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}

/* ============================================
   ABOUT ME SECTION - Two column layout
   ============================================ */
.about-me {
  padding-top: 40px;
  padding-bottom: 40px;
}

.about-me-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1000px;
}

.about-me-text {
  padding-right: 20px;
}

.about-me-text h2 {
  margin-bottom: 30px;
}

.about-me-text h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: var(--color-text-darker);
  margin-top: 15px;
}

.about-me-text p {
  font-size: 1.15em;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  line-height: 1.5em;
}

/* About Me image with decorative background */
.about-me-image {
  position: relative;
  margin-top: 75px; /* Align with text, not heading */
}

.about-me-image .img-wrapper {
  position: relative;
  max-width: 320px;
}

.about-me-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

.about-me-image img:hover {
  transform: scale(0.97);
}

/* Responsive - stack on mobile */
@media (max-width: 800px) {
  .about {
    padding-top: 24px;
  }

  .about-me {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .about-me-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-me-text {
    padding-right: 0;
  }

  .about-me-text h2 {
    margin-bottom: 20px;
  }

  .about-me-text p {
    font-size: 1.15em;
    margin-bottom: 18px;
  }

  .about-me-image {
    margin-top: 0;
  }

  .about-me-image .img-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }

  section h2 {
    margin-bottom: 18px;
  }

  .highlight-box li {
    margin-bottom: 10px;
  }
}

/* ============================================
   IMAGE GALLERY - Fixed aspect ratio grid
   ============================================ */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.photo-gallery-item {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-gallery-item:hover {
  transform: scale(0.98);
}

/* Responsive - 2 columns on tablet, 1 on mobile */
@media (max-width: 700px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .photo-gallery {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 24px auto;
    gap: 16px;
  }
}

/* ============================================
   HIGHLIGHT BOX
   ============================================ */
.highlight-box {
  padding: 0;
  margin-top: 20px;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-box li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-weight: 300;
  line-height: 1.5em;
}

.highlight-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-brand);
  border-radius: 50%;
}

/* Section lists (What's Included etc.) */
section > ul {
  list-style: none;
  padding: 0;
}

section > ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 300;
}

section > ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-brand);
  border-radius: 50%;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--color-bg-cta);
  text-align: center;
  padding: 50px 20px;
  margin-bottom: 40px;
}

.cta-section p {
  font-weight: 300;
}

.cta-section h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.cta-section .section-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 1.15em;
  margin-top: -10px;
  margin-bottom: 40px;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 40px auto;
  max-width: 700px;
}

.price-card {
  position: relative;
  border: 2px solid var(--border);
  padding: 32px 28px;
  text-align: left;
  border-radius: 16px;
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: var(--color-brand-light);
  border-width: 2px;
  box-shadow: 0 8px 24px rgba(var(--color-brand-light-rgb), 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.35);
}

.card-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--color-text);
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-card .price {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-primary);
}

.price-card .duration {
  font-size: 16px;
  color: var(--color-muted);
  font-weight: 500;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
}

.features svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* CTA Buttons */
.book-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--border-strong);
}

.book-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-brand-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.book-btn-primary {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.3);
}

.book-btn-primary:hover {
  background: linear-gradient(135deg, #C27A1C, #A56409);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--color-brand-rgb), 0.4);
}

.booking-info {
  margin-top: 40px;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  text-align: center;
}

.booking-info p {
  margin: 12px 0;
  font-size: 1em;
  line-height: 1.6;
}

.ready-text {
  text-align: center;
  font-size: 1.2em;
  margin-top: 40px;
  font-weight: 500;
}

.scroll-cta {
  text-align: center;
  font-size: 1.5em;
  margin: 10px 0 0;
}

/* Booking section - reserve space for Reenio iframe */
#booking {
  min-height: 600px;
  contain: layout;
}

/* ============================================
   INSTAGRAM SECTION
   ============================================ */
#instagram p {
  font-weight: 300;
  color: var(--color-text-dark);
  max-width: 600px;
  margin: 0 auto 20px;
}

#instagram a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

#instagram a:hover {
  opacity: 0.8;
  text-decoration: none;
}

#instagram h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

#testimonials {
  color: var(--text);
  contain: layout style;
}

#testimonials .header {
  text-align: center;
  margin-bottom: 24px;
}

#testimonials h2 {
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

#testimonials h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark));
  border-radius: 2px;
}

#testimonials .rating {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#testimonials .rating .stars {
  display: inline-flex;
  gap: 2px;
}

#testimonials .rating .nums {
  opacity: .8;
}

#testimonials .rating .g {
  font-weight: 700;
}

/* Slider Controls */
.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider .nav {
  appearance: none;
  background: linear-gradient(135deg, #ffffff, #fffbf7);
  border: 1.5px solid rgba(var(--color-brand-light-rgb), 0.2);
  border-radius: 9999px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(var(--color-brand-light-rgb), 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(10,10,12,0.7);
  font-weight: 600;
  transition: all 0.2s ease;
}

.slider .nav:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  border-color: var(--color-brand);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.3);
}

.slider .nav:disabled {
  opacity: .3;
  cursor: not-allowed;
  background: var(--color-bg-alt);
  border-color: var(--border);
}

.slider .nav:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* Track */
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  /* scroll-snap disabled - was causing scroll issues on iOS */
  /* scroll-snap-type: x mandatory; */
  scroll-behavior: smooth;
  padding: 6px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.track:focus {
  outline: none;
}

/* Slide */
.slide {
  flex-shrink: 0;
}

/* Testimonial Card (extends .card from common.css) */
#testimonials .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(var(--color-brand-light-rgb), 0.15);
  background: linear-gradient(to bottom, #fffbf7, #ffffff);
  box-shadow: 0 2px 12px rgba(var(--color-brand-light-rgb), 0.08);
}

/* Disable hover movement on testimonial cards */
#testimonials .card:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(var(--color-brand-light-rgb), 0.08);
}

.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--color-brand-light-rgb), 0.1);
}

.name {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: rgba(10,10,12,0.95);
}

.local-stars {
  display: inline-flex;
  gap: 2px;
}

/* Text with clamp/expand */
.txt {
  font-weight: 300;
  line-height: 1.5em;
  max-height: 4.5em;
  overflow: hidden;
  position: relative;
  color: var(--color-text-dark);
  font-size: 1rem;
}

#testimonials .card.expanded .txt {
  max-height: none;
}

.more {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  background: none;
  border: none;
  color: rgba(var(--color-brand-light-rgb), 0.85);
  cursor: pointer;
  font-weight: 500;
  padding: 6px 0;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.more:hover {
  color: var(--color-brand);
  font-weight: 600;
}

/* Fade effect for clamped text */
#testimonials .card .txt {
  max-height: 16em;
  --fade-h: 7.5em;
}

#testimonials .card.clamped .txt::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--fade-h);
  background: linear-gradient(
    to top,
    #ffffff 10%,
    rgba(255,255,255,0.85) 30%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.35) 70%,
    rgba(255,255,255,0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

#testimonials .card.expanded .txt::before {
  content: none !important;
  height: 0 !important;
}

/* ============================================
   FAQ SECTION
   ============================================ */

#faq {
  color: var(--text);
}

#faq .faq-header {
  margin-bottom: 14px;
}

#faq h2 {
  text-align: center;
}

#faq .sub {
  opacity: .75;
  margin: 0 0 8px;
  text-align: left;
}

#faq .faq-list {
  display: grid;
  gap: 10px;
}

#faq details {
  background: var(--color-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-darker);
}

#faq summary::marker {
  display: none;
}

#faq summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

#faq summary::after {
  content: '+';
  margin-left: auto;
  border: 1px solid var(--border-strong);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

#faq details[open] summary::after {
  content: '–';
}

#faq .answer {
  padding: 0 16px 14px;
  line-height: 1.5em;
  color: var(--color-text-dark);
  font-weight: 300;
}

/* ============================================
   FLAG ICONS
   ============================================ */

.flag {
  width: 20px;
  margin-right: 6px;
  height: 14px;
  display: inline-block;
  border: 1px solid rgba(var(--color-brand-light-rgb), 0.2);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(var(--color-brand-light-rgb), 0.1);
}

.flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 720px) {
  .track {
    grid-auto-columns: calc(50% - 8px);
  }
}

@media (min-width: 1040px) {
  .track {
    grid-auto-columns: calc(33.333% - 10.7px);
  }
}

@media (max-width: 768px) {
  header {
    background: url('../../media/gallery/prague/prague-header-s.webp') center 50% / cover;
  }

  .cta-section {
    padding: 36px 16px;
    margin-bottom: 30px;
  }

  .cta-section .section-subtitle {
    margin-bottom: 28px;
  }

  .pricing-options {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
    margin: 28px auto;
  }

  .price-card {
    padding: 20px 18px;
  }

  .card-header {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .price-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .price-card .price {
    font-size: 34px;
  }

  .price-card .duration {
    font-size: 15px;
  }

  .features {
    gap: 10px;
    margin-bottom: 18px;
  }

  .features li {
    gap: 10px;
  }

  .booking-info {
    padding: 18px;
    margin-top: 28px;
  }

  .booking-info p {
    margin: 10px 0;
  }

  .book-btn {
    padding: 12px 18px;
    font-size: 14px;
  }

  .ready-text {
    font-size: 1.1em;
    margin-top: 28px;
  }

  #booking {
    min-height: 500px;
  }

  /* Testimonials */
  #testimonials h2 {
    margin-bottom: 36px;
  }

  #testimonials .card {
    padding: 20px;
  }

  #testimonials .txt {
    font-size: 1em;
  }

  .slider .nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  /* FAQ */
  #faq summary {
    padding: 12px 14px;
    font-size: 1.18em;
  }

  #faq .answer {
    padding: 0 14px 12px;
    font-size: 1.18em;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 28px 14px;
    margin-bottom: 24px;
  }

  .pricing-options {
    gap: 16px;
    margin: 24px auto;
  }

  .price-card {
    padding: 18px 16px;
  }

  .card-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .price-card h3 {
    font-size: 18px;
  }

  .price-card .price {
    font-size: 30px;
  }


  .booking-info {
    padding: 16px;
  }

  #testimonials .txt {
    font-size: 0.95em;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .track {
    scroll-behavior: auto;
  }
}
