/**
 * Components: wedding cards, listing filters, and the wedding detail page (tiers, boundaries, add-ons, booking box, tabs).
 */

.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.wcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: .2s;
}

.wcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(55,38,29,.1);
}

.wphoto,
.booking-thumb,
.detail-photo {
  background: linear-gradient(135deg,#8e3f28,#d18455 45%,#e4b579);
  height: 210px;
  position: relative;
  overflow: hidden;
}

.wphoto img,
.detail-photo img,
.booking-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(to top,rgba(20,12,8,.72),transparent 75%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-caption b {
  font-family: 'Playfair Display';
  font-size: 16px;
  font-weight: 500;
}

.photo-caption span {
  font-size: 11px;
  opacity: .85;
}

.photo-caption.large {
  padding: 26px 30px;
}

.photo-caption.large b {
  font-size: 26px;
}

.booking-thumb span {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.spots {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  padding: 7px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.style-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,250,244,.94);
  color: var(--saffron);
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.wbody {
  padding: 22px;
}

.wmeta {
  display: flex;
  gap: 14px;
  color: #81766e;
  font-size: 11px;
}

.wbody h3 {
  font-family: 'Playfair Display';
  font-size: 25px;
  font-weight: 500;
  line-height: 1.12;
  margin: 13px 0 9px;
}

.wbody p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  min-height: 62px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 12px;
}

.card-bottom b {
  font-size: 17px;
}

.arrow-circle {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.explore {
  min-height: 700px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 25px 0 35px;
}

.filters select {
  padding: 12px 35px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.cards.wide {
  grid-template-columns: repeat(3,1fr);
}

.detail {
  padding-bottom: 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 450px;
  background: var(--cream);
}

.detail-photo {
  height: auto;
  min-height: 450px;
}

.detail-title {
  padding: 75px 7vw 55px;
  align-self: center;
}

.detail-title h1 {
  font-size: clamp(44px,5vw,65px);
}

.detail-title p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: #655c55;
  font-size: 12px;
}

.detail-grid {
  max-width: 1120px;
  margin: 70px auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 65px;
  padding: 0 25px;
}

.st {
  margin: 50px 0 24px;
}

.st:first-child {
  margin-top: 0;
}

.st h2 {
  font-size: 35px;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tier {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  text-align: left;
  padding: 20px;
}

.tier.selected {
  border: 2px solid var(--saffron);
  padding: 19px;
  background: #fff8f2;
}

.tier>div {
  display: flex;
  justify-content: space-between;
  font-family: 'Playfair Display';
  font-size: 21px;
}

.tier>div span {
  color: var(--saffron);
  font-family: 'DM Sans';
  font-size: 16px;
  font-weight: 700;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.tier li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.boundaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.boundaries>div {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
  background: #fff;
}

.boundaries b {
  display: block;
  margin-bottom: 13px;
}

.boundaries span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}

.addons {
  display: grid;
  gap: 9px;
}

.addon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
}

.addon input {
  accent-color: var(--saffron);
}

.addon b {
  margin-left: auto;
}

.booking-box {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 23px;
  border-radius: 12px;
  height: max-content;
  box-shadow: 0 12px 35px rgba(57,40,30,.06);
}

.booking-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .12em;
}

.booking-top b {
  color: var(--green);
  letter-spacing: 0;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.price-line strong {
  font-family: 'Playfair Display';
  font-size: 34px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  color: #5d554f;
  margin: 18px 0;
}

.check input {
  margin-top: 2px;
  accent-color: var(--saffron);
}

.microtrust {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #746a63;
  font-size: 10px;
  line-height: 1.4;
  margin-top: 13px;
}

.booking-thumb {
  height: 90px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}

.booking-thumb span {
  font-family: 'Playfair Display';
  color: rgba(255,255,255,.8);
  font-size: 16px;
}

.tabs {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.tab-btn {
  background: none;
  border: 0;
  padding: 0 0 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--saffron);
}

.tab-panel.hidden {
  display: none;
}
