/*
Theme Name: RetreatChoice
Description: Custom theme for RetreatChoice – calm, luxury wellness platform
Author: RetreatChoice
Version: 1.0
*/

/* ===================================================
   1. GLOBAL RESET & BASE
=================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2f2f2f;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================================================
   2. TYPOGRAPHY
=================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: #1f2a24;
}

p {
  margin-bottom: 1.2em;
}

a {
  color: #8b5e3c;
  text-decoration: none;
}

/* ===================================================
   3. RETREAT SINGLE PAGE LAYOUT
=================================================== */

.retreat-single-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ---------- Hero ---------- */

.retreat-title {
  font-size: 42px;
  margin-bottom: 12px;
}

.retreat-location {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 24px;
}

.retreat-featured-image img {
  width: 100%;
  border-radius: 18px;
  margin-top: 30px;
}

/* ===================================================
   4. OVERVIEW STRIP
=================================================== */

.retreat-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  background: #f6f8f6;
  padding: 28px;
  border-radius: 18px;
  margin: 50px 0;
}

.overview-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.overview-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================
   5. CONTENT SECTIONS
=================================================== */

.retreat-section {
  margin: 60px 0;
}

.retreat-section h2 {
  font-size: 26px;
  margin-bottom: 22px;
}

/* ===================================================
   6. RETREAT GALLERY (GRID)
=================================================== */

.retreat-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.retreat-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.retreat-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Tablet */
@media (max-width: 1024px) {
  .retreat-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .retreat-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .retreat-gallery img {
    height: 160px;
  }
}

/* ===================================================
   7. LIGHTBOX (FINAL)
=================================================== */

.retreat-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.retreat-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

body.lightbox-open {
  overflow: hidden;
}

/* ===================================================
   8. RETREAT ARCHIVE
=================================================== */

.retreat-archive-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ===================================================
   9. FOOTER
=================================================== */

footer {
  margin-top: 80px;
  padding: 40px 20px;
  background: #f6f8f6;
  font-size: 14px;
  color: #6b7280;
}

/* ===================================================
   10. PRACTITIONER ARCHIVE (RC)
   Used in: archive-practitioner.php
=================================================== */

/* ---------------------------------------------------
   10.1 Archive Wrapper & Header
--------------------------------------------------- */

.rc-archive.rc-practitioners {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.rc-archive-header {
  text-align: center;
  margin-bottom: 40px;
}

.rc-archive-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.rc-archive-header p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

/* ---------------------------------------------------
   10.2 Filters Row
--------------------------------------------------- */

.rc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.rc-filters select,
.rc-filters button {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #2f2f2f;
}

.rc-filters button {
  cursor: pointer;
}

.rc-filters .reset {
  font-size: 14px;
  color: #8b5e3c;
  text-decoration: underline;
  align-self: center;
}

/* ---------------------------------------------------
   10.3 Practitioner Grid
--------------------------------------------------- */

.rc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ---------------------------------------------------
   10.4 Practitioner Card
--------------------------------------------------- */

.rc-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

.rc-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Practitioner Image */
.rc-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Card Content */
.rc-card h3 {
  font-size: 18px;
  margin: 16px 16px 4px;
}

.rc-card .rc-title {
  font-size: 14px;
  margin: 0 16px 6px;
  color: #4b5563;
}

.rc-card .rc-modalities {
  font-size: 13px;
  margin: 0 16px 6px;
  color: #6b7280;
}

.rc-card .rc-meta {
  font-size: 13px;
  margin: 0 16px 14px;
  color: #6b7280;
}

/* Card CTA */
.rc-card .rc-cta {
  display: inline-block;
  margin: 0 16px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  color: #8b5e3c;
}

/* ---------------------------------------------------
   10.5 Empty State
--------------------------------------------------- */

.rc-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 16px;
  color: #6b7280;
}

/* ---------------------------------------------------
   10.6 Pagination
--------------------------------------------------- */

.rc-pagination {
  margin-top: 50px;
  text-align: center;
}

.rc-pagination a,
.rc-pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

/* ---------------------------------------------------
   10.7 Responsive Behaviour
--------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .rc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .rc-grid {
    grid-template-columns: 1fr;
  }

  .rc-archive-header h1 {
    font-size: 26px;
  }

  .rc-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .rc-filters select,
  .rc-filters button {
    width: 100%;
  }
}

/* ===================================================
   11. PRACTITIONER SINGLE PAGE (RC)
   Used in: single-practitioner.php
=================================================== */

/* ---------------------------------------------------
   11.1 Wrapper
--------------------------------------------------- */

.rc-single.rc-practitioner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ---------------------------------------------------
   11.2 Header (Image + Intro)
--------------------------------------------------- */

.rc-practitioner-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.rc-practitioner-image img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.rc-practitioner-intro h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.rc-practitioner-title {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 6px;
}

.rc-practitioner-specialization {
  font-size: 15px;
  color: #6b7280;
}

/* ---------------------------------------------------
   11.3 About Section
--------------------------------------------------- */

.rc-practitioner-about {
  margin-bottom: 60px;
}

.rc-practitioner-about h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

.rc-practitioner-about p {
  max-width: 780px;
}

/* ---------------------------------------------------
   11.4 Modalities
--------------------------------------------------- */

.rc-practitioner-modalities {
  margin-bottom: 60px;
}

.rc-practitioner-modalities h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.rc-practitioner-modalities ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.rc-practitioner-modalities li {
  padding: 8px 14px;
  background: #f6f8f6;
  border-radius: 999px;
  font-size: 14px;
}

/* ---------------------------------------------------
   11.5 Experience & Location Strip
--------------------------------------------------- */

.rc-practitioner-meta {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 60px;
}

/* ---------------------------------------------------
   11.6 Associated Retreats
--------------------------------------------------- */

.rc-practitioner-retreats h2 {
  font-size: 26px;
  margin-bottom: 24px;
}

.rc-related-retreats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.rc-related-retreat {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.rc-related-retreat:hover {
  transform: translateY(-3px);
}

.rc-related-retreat h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.rc-related-retreat span {
  font-size: 14px;
  color: #8b5e3c;
  text-decoration: underline;
}

/* ---------------------------------------------------
   11.7 Soft CTA
--------------------------------------------------- */

.rc-practitioner-cta {
  margin-top: 70px;
  text-align: center;
}

.rc-practitioner-cta a {
  font-size: 16px;
  text-decoration: underline;
  color: #8b5e3c;
}

/* ---------------------------------------------------
   11.8 Responsive Behaviour
--------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .rc-practitioner-header {
    grid-template-columns: 220px 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .rc-practitioner-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rc-practitioner-meta {
    flex-direction: column;
    gap: 10px;
  }

  .rc-related-retreats {
    grid-template-columns: 1fr;
  }
}

