/* ============================================
   MIRAMAR VILLA 499 — COMPONENTS
   ============================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-natural);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--golden-hour);
  color: var(--deep-ocean);
}

.btn-primary:hover {
  background-color: var(--golden-hour-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border: 1.5px solid var(--golden-hour);
  color: var(--golden-hour);
}

.btn-secondary:hover {
  background-color: var(--golden-hour);
  color: var(--deep-ocean);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-light);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-dark {
  background-color: var(--deep-ocean);
  color: var(--text-light);
}

.btn-dark:hover {
  background-color: var(--midnight-teal);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 0.9375rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-natural);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

/* Amenity Card */
.amenity-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 120, 115, 0.1);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-natural);
}

.amenity-card:hover {
  border-color: var(--caribbean-teal);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.amenity-card .amenity-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--caribbean-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amenity-card .amenity-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.amenity-card h4 {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.amenity-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Testimonial Card */
.testimonial-card {
  background: var(--warm-sand);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) calc(var(--space-2xl) + 3px);
  border-left: 3px solid var(--golden-hour);
  position: relative;
}

.testimonial-card .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--golden-hour);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: var(--space-lg);
  left: var(--space-xl);
}

.testimonial-card blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: var(--space-lg);
}

.testimonial-card .guest-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card .guest-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--caribbean-teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.125rem;
}

.testimonial-card .guest-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.9375rem;
}

.testimonial-card .guest-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Location Card */
.location-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 120, 115, 0.08);
  transition: all var(--duration-normal) var(--ease-natural);
}

.location-card:hover {
  border-color: var(--caribbean-teal);
  box-shadow: var(--shadow-sm);
}

.location-card .location-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(44, 120, 115, 0.08);
  color: var(--caribbean-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-card .location-icon svg {
  width: 22px;
  height: 22px;
}

.location-card .location-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.location-card .location-distance {
  font-size: 0.8125rem;
  color: var(--caribbean-teal);
  font-weight: 500;
}

.location-card .location-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Pricing Card */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(212, 168, 83, 0.2);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--golden-hour), var(--sunset-coral));
}

.pricing-card .price-amount {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.pricing-card .price-period {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.pricing-card .price-features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-card .price-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-body);
}

.pricing-card .price-features li svg {
  width: 18px;
  height: 18px;
  color: var(--seafoam);
  flex-shrink: 0;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(212, 168, 83, 0.15);
  color: var(--golden-hour-dark);
}

.badge-teal {
  background: rgba(44, 120, 115, 0.1);
  color: var(--caribbean-teal);
}

.badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

/* ---------- Property Pills ---------- */
.property-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.property-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.property-pill-dark {
  background: rgba(15, 32, 39, 0.06);
  border-color: rgba(15, 32, 39, 0.1);
  color: var(--text-body);
}

.pill-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.pill-divider-dark {
  background: rgba(15, 32, 39, 0.2);
}

/* ---------- Section Headers ---------- */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header .caption {
  margin-bottom: var(--space-md);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-lg);
}

.section-header .section-desc {
  max-width: 640px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.section-header.text-center .section-desc {
  margin: 0 auto;
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--golden-hour);
  margin: var(--space-lg) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(15, 32, 39, 0.12);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-body);
  background: var(--white);
  transition: all var(--duration-fast) var(--ease-natural);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--caribbean-teal);
  box-shadow: 0 0 0 3px rgba(44, 120, 115, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Star Rating ---------- */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--golden-hour);
}

.star-rating svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Image Hover ---------- */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-hover-zoom img {
  transition: transform 0.6s var(--ease-natural);
}

.img-hover-zoom:hover img {
  transform: scale(1.03);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-natural);
}

.faq-question:hover {
  color: var(--golden-hour);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: var(--space-lg);
}

.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--duration-normal) var(--ease-natural);
}

.faq-question .faq-icon::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-question .faq-icon::after {
  width: 2px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-question .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-natural),
              padding var(--duration-slow) var(--ease-natural);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  color: rgba(245, 239, 224, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--deep-ocean);
  color: var(--golden-hour);
  border: 1px solid rgba(212, 168, 83, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-natural);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--golden-hour);
  color: var(--deep-ocean);
  transform: translateY(-2px);
}
