/* Shared resort page styles (resort-page.php)
   Editorial theme aligned with destination-guide.css */

:root {
  --rs-ink: #102d2b;
  --rs-gold: #b8860b;
  --rs-teal: #1a7971;
  --rs-blue: #008cff;
  --rs-cream: #f8f5ee;
  --rs-muted: #64748b;
  --rs-border: #e8e2d5;
}

/* ---------- Banner ---------- */
.modern-banner { position: relative; margin-bottom: 0; overflow: hidden; background: #0f2928; }
.modern-banner img { width: 100%; height: min(68vh, 640px); min-height: 380px; object-fit: cover; display: block; }
.modern-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,25,24,.05) 30%, rgba(6,25,24,.72)); pointer-events: none; }
.banner-content { position: absolute; bottom: 48px; left: 0; width: 100%; padding: 25px 0; z-index: 10; }
.animated-banner-content { animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.rs-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.rs-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.rs-breadcrumb a:hover { color: #fff; }
.rs-breadcrumb .current { color: #e7bd43; }
.rs-hero-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #e7bd43; margin-bottom: 8px; }
.banner-title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; margin: 0; color: #fff; text-shadow: 2px 2px 12px rgba(0,0,0,0.5); animation: slidein 1.5s ease-out; line-height: 1.1; }
@keyframes slidein { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 768px) {
  .modern-banner img { height: 52vh; min-height: 300px; }
  .banner-content { bottom: 18px; padding: 15px 0; }
}

/* ---------- Section headers ---------- */
.resort-name { font-family: Georgia, serif; color: var(--rs-ink); font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0.5rem 0 1rem; }
.resort-description { font-size: 1.05rem; line-height: 1.85; color: #475569; max-width: 72ch; }
.rs-header { margin-bottom: 20px; }
.rs-eyebrow { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rs-gold); margin-bottom: 6px; }
.rs-header h3 { font-family: Georgia, serif; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--rs-ink); margin: 0; }

/* ---------- Provider ratings ---------- */
.resort-ratings { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 20px; }
.rating-item { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; background: #fff; border: 1px solid var(--rs-border); border-radius: 999px; box-shadow: 0 2px 8px rgba(16,45,43,0.06); color: var(--rs-ink); text-decoration: none; font-size: 0.88rem; transition: box-shadow 0.2s, transform 0.2s; }
a.rating-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,45,43,0.14); color: var(--rs-ink); }
.rating-stars { color: #f5a623; letter-spacing: 1px; font-size: 0.85rem; }
.rating-score { font-weight: 800; }
.rating-count { color: var(--rs-muted); }
.rating-logo { height: 18px; width: auto; object-fit: contain; }
.rating-provider { font-weight: 700; color: #4b5563; }

/* ---------- Destination info card ---------- */
.destination-info-card { position: relative; background: linear-gradient(135deg, var(--rs-cream) 0%, #fff 100%); border: 1px solid var(--rs-border); border-radius: 18px; padding: 28px 32px; overflow: hidden; }
.destination-info-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--rs-gold); }
.destination-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rs-gold); margin-bottom: 6px; }
.destination-name { font-family: Georgia, serif; margin: 0 0 10px; font-size: 1.7rem; color: var(--rs-ink); }
.destination-desc { color: #475569; line-height: 1.75; margin-bottom: 16px; }
.btn-destination-guide { display: inline-flex; align-items: center; gap: 9px; background: var(--rs-cream); color: var(--rs-ink); border: 1px solid var(--rs-border); padding: 11px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.btn-destination-guide:hover { background: var(--rs-gold); border-color: var(--rs-gold); color: #fff; transform: translateY(-1px); }
.btn-destination-guide i { transition: transform 0.2s; }
.btn-destination-guide:hover i { transform: translateX(4px); }

/* ---------- Resource action cards ---------- */
.resort-actions-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 34px; }
.resort-action-card { display: flex; align-items: center; gap: 15px; padding: 20px 22px; background: var(--rs-cream); border: 1px solid var(--rs-border); border-radius: 14px; text-decoration: none; color: var(--rs-ink); box-shadow: 0 3px 10px rgba(16,45,43,0.06); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.resort-action-card:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(16,45,43,0.12); border-color: var(--rs-gold); color: var(--rs-ink); }
.resort-action-card > i { font-size: 1.7rem; color: var(--rs-gold); }
.resort-action-card strong { display: block; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.05em; }
.resort-action-card span { font-size: 0.82rem; color: var(--rs-muted); }

/* ---------- Amenities ---------- */
.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.amenity-card { display: grid; grid-template-columns: 1fr 150px; grid-template-rows: auto auto; grid-template-areas: "icon image" "body image"; gap: 10px 18px; align-items: start; background: var(--rs-cream); border: 1px solid var(--rs-border); border-radius: 18px; padding: 20px; transition: transform 0.2s, box-shadow 0.2s; }
.amenity-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(16,45,43,0.1); }
.amenity-icon { grid-area: icon; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: var(--rs-cream); border-radius: 50%; }
.amenity-icon img { width: 26px; height: 26px; object-fit: contain; }
.amenity-icon i { color: var(--rs-gold); font-size: 1.2rem; }
.amenity-body { grid-area: body; min-width: 0; text-align: left; }
.amenity-body h4 { margin: 0 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; color: var(--rs-ink); }
.amenity-desc { margin: 0 0 8px; font-size: 0.9rem; color: var(--rs-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.amenity-readmore { background: none; border: none; padding: 0; font-size: 0.82rem; font-weight: 700; color: var(--rs-gold); cursor: pointer; text-decoration: underline; }
.amenity-readmore:hover { color: #8a6408; }
.amenity-image { grid-area: image; width: 100%; height: 140px; border-radius: 14px; overflow: hidden; align-self: center; }
.amenity-image img { width: 100%; height: 100%; object-fit: cover; }

/* Amenity read-more modal */
.amenity-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(16,45,43,0.55); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.amenity-modal.active { display: flex; }
.amenity-modal-dialog { position: relative; background: #fff; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px rgba(16,45,43,0.25); }
.amenity-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--rs-muted); cursor: pointer; z-index: 2; }
.amenity-modal-close:hover { color: var(--rs-ink); }
.amenity-modal-image { width: 100%; height: 240px; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.amenity-modal-image img { width: 100%; height: 100%; object-fit: cover; }
.amenity-modal-dialog h4 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 1.45rem; color: var(--rs-ink); }
.amenity-modal-dialog p { margin: 0; font-size: 1rem; line-height: 1.7; color: #475569; }

@media (max-width: 900px) {
  .amenities-grid { grid-template-columns: 1fr; }
  .amenity-card { gap: 10px 14px; padding: 16px; grid-template-columns: 1fr 140px; }
  .amenity-image { height: 120px; }
}
@media (max-width: 576px) {
  .amenity-card { grid-template-columns: 1fr; grid-template-areas: "icon" "image" "body"; }
  .amenity-image { height: 180px; }
}

/* ---------- Rooms ---------- */
.room-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.room-item { background: var(--rs-cream); border: 1px solid var(--rs-border); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(16,45,43,0.07); transition: transform 0.3s, box-shadow 0.3s; }
.room-item:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(16,45,43,0.14); }
.room-image { width: 100%; height: 280px; overflow: hidden; }
.room-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.room-item:hover .room-image img { transform: scale(1.06); }
.room-info { padding: 18px 20px; text-align: center; }
.room-info h4 { margin: 0; font-size: 1.15rem; color: var(--rs-ink); font-weight: 700; font-family: Georgia, serif; }
.room-desc { font-size: 0.88rem; color: var(--rs-muted); margin: 8px 0 0; line-height: 1.6; }
.room-features { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.room-feature-chip { background: var(--rs-cream); color: var(--rs-gold); font-size: 0.74rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
@media (max-width: 991px) { .room-details-grid { grid-template-columns: repeat(2, 1fr); } .room-image { height: 240px; } }
@media (max-width: 768px) { .room-details-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } .room-image { height: 200px; } }
@media (max-width: 480px) { .room-details-grid { grid-template-columns: 1fr; } .room-image { height: 240px; } }

/* ---------- Gallery ---------- */
.gallery-section { margin-bottom: 30px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; height: 0; padding-bottom: 70%; transition: transform 0.3s; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-link { display: block; height: 100%; width: 100%; position: absolute; top: 0; left: 0; }
.gallery-image { object-fit: cover; height: 100%; width: 100%; position: absolute; top: 0; left: 0; transition: all 0.3s; }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,25,24,0.55)); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-overlay i { color: white; font-size: 24px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-image { filter: brightness(1.08); }
@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Location ---------- */
.location-section { background: var(--rs-cream); border: 1px solid var(--rs-border); border-radius: 18px; padding: 28px; box-shadow: 0 8px 24px rgba(16,45,43,0.06); }
.location-desc { color: #475569; line-height: 1.75; margin-bottom: 16px; }
.btn-directions { display: inline-flex; align-items: center; gap: 9px; background: var(--rs-cream); color: var(--rs-ink); border: 1px solid var(--rs-border); padding: 11px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.btn-directions:hover { background: var(--rs-gold); border-color: var(--rs-gold); color: #fff; }
.location-map-full { margin-top: 22px; border-radius: 16px; overflow: hidden; border: 1px solid var(--rs-border); box-shadow: 0 6px 18px rgba(16,45,43,0.1); }
.location-map-full iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Nearby attractions - horizontal carousel */
.nearby-attractions { margin-top: 42px; }
.nearby-attractions .rs-header { margin-bottom: 24px; }
.nearby-carousel { padding-bottom: 46px; }
.nearby-carousel .swiper-slide { width: 300px; height: auto; }
.nearby-carousel-card { display: flex; flex-direction: column; background: var(--rs-cream); border: 1px solid var(--rs-border); border-radius: 20px; overflow: hidden; height: 100%; box-shadow: 0 10px 28px rgba(16,45,43,0.08); transition: transform 0.25s, box-shadow 0.25s; }
.nearby-carousel-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16,45,43,0.14); }
.nearby-carousel-image { position: relative; height: 190px; overflow: hidden; }
.nearby-carousel-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.nearby-carousel-card:hover .nearby-carousel-image img { transform: scale(1.06); }
.nearby-carousel-image .nearby-card-tag { position: absolute; top: 14px; left: 14px; }
.nearby-card-tag { background: rgba(255,255,255,0.95); color: var(--rs-ink); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--rs-border); }
.nearby-carousel-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.nearby-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.nearby-card-top h4 { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; color: var(--rs-ink); line-height: 1.25; }
.nearby-card-distance { flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--rs-gold); display: inline-flex; align-items: center; gap: 4px; }
.nearby-card-time { font-size: 0.78rem; color: var(--rs-muted); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 5px; }
.nearby-carousel-body p { font-size: 0.84rem; color: var(--rs-muted); line-height: 1.55; margin: 0 0 14px; }
.nearby-card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 700; color: var(--rs-gold); text-decoration: none; }
.nearby-card-link i { transition: transform 0.2s; }
.nearby-card-link:hover i { transform: translateX(3px); }
.nearby-carousel .swiper-button-prev,
.nearby-carousel .swiper-button-next { color: #1a7971; background: rgba(255,255,255,0.95); width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 4px 14px rgba(16,45,43,0.12); top: 40%; transition: transform 0.2s, background 0.2s; }
.nearby-carousel .swiper-button-prev:hover,
.nearby-carousel .swiper-button-next:hover { background: #fff; transform: scale(1.08); }
.nearby-carousel .swiper-button-prev::after,
.nearby-carousel .swiper-button-next::after { font-size: 14px; font-weight: 900; }
.nearby-carousel .swiper-pagination { bottom: 0; }
.nearby-carousel .swiper-pagination-bullet { width: 9px; height: 9px; background: #cbd5e1; opacity: 1; }
.nearby-carousel .swiper-pagination-bullet-active { background: #1a7971; }

.travel-routes { margin-top: 36px; }
.travel-routes h4 { font-family: Georgia, serif; color: var(--rs-ink); font-size: 1.2rem; margin-bottom: 14px; }
.travel-routes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.travel-route-card { display: flex; gap: 13px; border: 1px solid var(--rs-border); border-radius: 12px; padding: 15px; background: var(--rs-cream); transition: box-shadow 0.2s, transform 0.2s; }
.travel-route-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,45,43,0.1); }
.route-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--rs-ink); color: #e7bd43; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.95rem; }
.route-body strong { display: block; font-size: 0.92rem; color: var(--rs-ink); }
.route-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--rs-muted); margin: 5px 0; }
.route-body p { font-size: 0.83rem; color: var(--rs-muted); margin: 5px 0; line-height: 1.55; }
.route-body a { font-size: 0.82rem; font-weight: 600; color: var(--rs-gold); }

@media (max-width: 576px) {
  .nearby-carousel .swiper-slide { width: 86%; }
  .nearby-carousel-image { height: 170px; }
  .location-map-full iframe { height: 300px; }
}

/* ---------- Testimonials extras ---------- */
.testimonials-section { background: var(--rs-cream); border-radius: 18px; padding: 28px; }
.testimonial-stars { color: #f5a623; margin-bottom: 12px; font-size: 0.95rem; }
.testimonial-travel { display: inline-block; margin-left: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--rs-cream); border: 1px solid var(--rs-border); color: var(--rs-gold); padding: 2px 9px; border-radius: 999px; }
.testimonial-provider { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 0.8rem; color: var(--rs-muted); }
.testimonial-provider img { height: 14px; width: auto; }
.testimonial-provider a { color: var(--rs-gold); }
