/* ========================================
   ATTRACTIONS PAGE STYLES
   ======================================== */

/* Header Light Theme - inherits floating style from main styles.css */
.header--light {
  background: rgba(26, 60, 45, 0.9);
}

.header--light .header__logo {
  color: #fff;
}

/* Hero Carousel */
.attr-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.attr-hero__carousel {
  position: absolute;
  inset: 0;
}

.attr-hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.attr-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.attr-hero__slide.active {
  opacity: 1;
}

.attr-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attr-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attr-hero__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.attr-hero__nav--prev {
  left: 20px;
}

.attr-hero__nav--next {
  right: 20px;
}

.attr-hero__dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.attr-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.attr-hero__dot.active {
  background: #fff;
  transform: scale(1.2);
}

.attr-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.attr-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 400;
  margin: 0 0 16px;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.attr-hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.9;
  margin: 0;
}

/* Intro Section */
.attr-intro {
  padding: 30px 40px 60px;
  background: var(--bg-light);
}

.attr-intro__container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.attr-intro__text {
  margin-bottom: 32px;
}

.attr-intro__text p {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0 0 16px;
}

.attr-intro__text p:last-child {
  margin-bottom: 0;
}

.attr-intro__btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    5px 5px 15px rgba(26, 60, 45, 0.2),
    -3px -3px 10px rgba(255, 255, 255, 0.5),
    0 0 16px rgba(26, 60, 45, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: levitate-subtle 4s ease-in-out infinite;
}

.attr-intro__btn:hover {
  animation-play-state: paused;
  background: var(--primary-light);
  transform: translateY(-5px);
  box-shadow:
    10px 14px 32px rgba(26, 60, 45, 0.3),
    -6px -4px 20px rgba(255, 255, 255, 0.6),
    0 8px 28px rgba(201, 169, 89, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.attr-intro__btn:active {
  transform: translateY(0);
  box-shadow:
    inset 2px 2px 6px rgba(26, 60, 45, 0.15),
    inset -2px -2px 6px rgba(255, 255, 255, 0.1);
}

/* Content Section */
.attr-content {
  padding: 80px 40px;
  background: var(--bg-white);
}

.attr-content__container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Section Accordion */
.attr-section {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: levitate-subtle 5s ease-in-out infinite, levitate-shadow 5s ease-in-out infinite;
}

.attr-section:nth-child(2) {
  animation-delay: 0.5s;
}

.attr-section:nth-child(3) {
  animation-delay: 1s;
}

.attr-section:nth-child(4) {
  animation-delay: 1.5s;
}

.attr-section:nth-child(5) {
  animation-delay: 2s;
}

.attr-section:hover {
  animation-play-state: paused;
}

.attr-section__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.attr-section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  color: var(--primary);
  margin: 0;
}

.attr-section__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transition: all 0.3s;
}

.attr-section__icon::before,
.attr-section__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s;
}

.attr-section__icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.attr-section__icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.attr-section__toggle[aria-expanded="true"] .attr-section__icon {
  background: var(--accent);
  color: #fff;
}

.attr-section__toggle[aria-expanded="true"] .attr-section__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.attr-section__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.attr-section__content.active {
  max-height: 5000px;
}

.attr-section__content > .attr-place,
.attr-section__content > .attr-category,
.attr-section__content > .attr-routes {
  padding: 0 28px 24px;
}

/* Category Accordion */
.attr-category {
  margin-bottom: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow:
    4px 4px 12px rgba(26, 60, 45, 0.06),
    -4px -4px 12px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.attr-category:hover {
  box-shadow:
    6px 6px 16px rgba(26, 60, 45, 0.08),
    -6px -6px 16px rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(201, 169, 89, 0.1);
}

.attr-category__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.attr-category__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
}

.attr-category__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  color: var(--accent);
}

.attr-category__icon::before,
.attr-category__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s;
}

.attr-category__icon::before {
  width: 10px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.attr-category__icon::after {
  width: 2px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.attr-category__toggle[aria-expanded="true"] .attr-category__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.attr-category__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 20px;
}

.attr-category__toggle[aria-expanded="true"] + .attr-category__content {
  max-height: 2000px;
  padding-bottom: 20px;
}

/* Place Item */
.attr-place {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.attr-place:last-child {
  border-bottom: none;
}

.attr-place h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 8px;
}

.attr-place p {
  font-size: 15px;
  color: #5a6b5e;
  line-height: 1.7;
  margin: 0 0 8px;
}

.attr-place__info {
  display: block;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* List */
.attr-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.attr-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 15px;
  color: #5a6b5e;
  padding-left: 24px;
  position: relative;
}

.attr-list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--accent);
}

.attr-list li:last-child {
  border-bottom: none;
}

/* Routes */
.attr-routes {
  display: grid;
  gap: 16px;
}

.attr-route {
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
}

.attr-route h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 10px;
}

.attr-route p {
  font-size: 15px;
  color: #5a6b5e;
  line-height: 1.7;
  margin: 0;
}

/* CTA Section */
.attr-cta {
  padding: 80px 40px;
  background: var(--primary);
  text-align: center;
}

.attr-cta__container {
  max-width: 700px;
  margin: 0 auto;
}

.attr-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: #fff;
  margin: 0 0 20px;
}

.attr-cta__text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0 0 32px;
}

.attr-cta__btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    4px 4px 12px rgba(0, 0, 0, 0.2),
    -3px -3px 10px rgba(255, 255, 255, 0.1),
    0 0 16px rgba(201, 169, 89, 0.2);
  animation: levitate-subtle 3.5s ease-in-out infinite;
}

.attr-cta__btn:hover {
  animation-play-state: paused;
  background: var(--accent-hover);
  transform: translateY(-5px);
  box-shadow:
    8px 12px 28px rgba(0, 0, 0, 0.3),
    -5px -3px 18px rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(201, 169, 89, 0.45);
}

/* Disclaimer */
.attr-disclaimer {
  padding: 40px;
  background: var(--bg-light);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.attr-disclaimer__container {
  max-width: 900px;
  margin: 0 auto;
}

.attr-disclaimer p {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin: 0 0 12px;
}

.attr-disclaimer p:last-child {
  margin-bottom: 0;
}

/* ========================================
   SIMPLE HERO
   ======================================== */
.attr-hero--simple {
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
}

.attr-hero__bg {
  position: absolute;
  inset: 0;
}

.attr-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attr-hero--simple .attr-hero__content {
  padding: 40px;
}

/* ========================================
   PHOTO GALLERY SECTION
   ======================================== */
.attr-gallery {
  padding: 60px 40px 30px;
  background: var(--bg-light);
}

.attr-gallery__container {
  max-width: 900px;
  margin: 0 auto;
}

.attr-gallery__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--primary);
  text-align: center;
  margin: 0 0 12px;
}

.attr-gallery__subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin: 0 0 40px;
}

/* Gallery Preview Box */
.attr-gallery__preview {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.attr-gallery__preview-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.attr-gallery__preview-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.attr-gallery__preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 24px 32px;
  background: var(--primary);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.attr-gallery__preview-btn:hover {
  background: var(--primary-light);
}

.attr-gallery__preview-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.attr-gallery__preview-icon svg {
  width: 100%;
  height: 100%;
}

.attr-gallery__preview-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}

.attr-gallery__preview-count {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* Hidden items container */
.attr-gallery__items {
  display: none;
}

.attr-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.attr-gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attr-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.attr-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.attr-gallery__item:hover img {
  transform: scale(1.05);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.attr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.attr-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.attr-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.attr-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.attr-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.attr-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attr-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.attr-lightbox__nav--prev {
  left: 20px;
}

.attr-lightbox__nav--next {
  right: 20px;
}

.attr-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-full);
}

/* Responsive */
@media (max-width: 768px) {
  .attr-hero {
    height: 50vh;
    min-height: 400px;
  }

  .attr-hero--simple {
    height: 40vh;
    min-height: 300px;
  }

  .attr-hero__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .attr-hero__nav--prev {
    left: 10px;
  }

  .attr-hero__nav--next {
    right: 10px;
  }

  .attr-hero__content {
    padding: 40px 16px 30px;
  }

  .attr-hero__title {
    font-size: 22px;
    line-height: 1.3;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .attr-hero__subtitle {
    font-size: 14px;
  }

  .attr-hero__dots {
    bottom: 80px;
  }

  .attr-gallery {
    padding: 40px 20px 20px;
  }

  .attr-gallery__preview-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .attr-gallery__preview-btn {
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
  }

  .attr-gallery__preview-icon {
    width: 24px;
    height: 24px;
  }

  .attr-gallery__preview-text {
    font-size: 15px;
  }

  .attr-gallery__preview-count {
    font-size: 12px;
    padding: 4px 10px;
  }

  .attr-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .attr-gallery__subtitle {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .attr-gallery__title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .attr-intro {
    padding: 20px 20px 40px;
  }

  .attr-intro__text p {
    font-size: 15px;
    line-height: 1.7;
  }

  .attr-lightbox__close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .attr-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .attr-lightbox__nav--prev {
    left: 10px;
  }

  .attr-lightbox__nav--next {
    right: 10px;
  }

  .attr-lightbox img {
    max-width: 95%;
    max-height: 75vh;
  }

  .attr-intro {
    padding: 60px 24px;
  }

  .attr-content {
    padding: 60px 24px;
  }

  .attr-section__toggle {
    padding: 20px 20px;
  }

  .attr-section__content > .attr-place,
  .attr-section__content > .attr-category,
  .attr-section__content > .attr-routes {
    padding: 0 20px 20px;
  }

  .attr-cta {
    padding: 60px 24px;
  }

  .attr-disclaimer {
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  .attr-hero {
    height: 45vh;
    min-height: 350px;
  }

  .attr-hero__content {
    padding: 30px 12px 24px;
  }

  .attr-hero__title {
    font-size: 18px;
    line-height: 1.3;
    padding: 0;
    text-align: center;
  }

  .attr-hero__subtitle {
    font-size: 12px;
  }

  .attr-hero__dots {
    display: none;
  }

  .attr-gallery {
    padding: 30px 16px 16px;
  }

  .attr-gallery__title {
    font-size: 20px;
  }

  .attr-gallery__subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .attr-gallery__preview-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  .attr-gallery__preview-btn {
    padding: 14px 16px;
  }

  .attr-gallery__preview-text {
    font-size: 14px;
  }

  .attr-intro {
    padding: 16px 16px 30px;
  }

  .attr-intro__text p {
    font-size: 14px;
  }

  .attr-intro__btn {
    padding: 14px 32px;
    font-size: 14px;
  }

  .attr-section__title {
    font-size: 18px;
  }

  .attr-category__title {
    font-size: 16px;
  }

  .attr-place h4 {
    font-size: 16px;
  }
}
