/* ============================================================
   accommodation_detail.css — SurfTrip.ph v2
   ============================================================ */

/* --- Hero ------------------------------------------------- */
.ad-hero {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) { .ad-hero { min-height: 340px; } }

.ad-hero-gradient {
  background: linear-gradient(160deg, #062040 0%, #0a3060 50%, #0d5c4a 100%);
}

.ad-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,15,28,0.95) 0%,
    rgba(6,15,28,0.5)  50%,
    rgba(6,15,28,0.2)  100%
  );
}

.ad-hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.ad-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-top: var(--space-md);
  margin-bottom: 6px;
}

.ad-hero-spot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ad-hero-spot svg { flex-shrink: 0; }

/* --- Body layout ------------------------------------------ */
.ad-body {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.ad-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .ad-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }

  .ad-main    { flex: 1; min-width: 0; }
  .ad-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: calc(56px + var(--space-lg)); }
}

/* --- Slideshow -------------------------------------------- */
.ad-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin-bottom: var(--space-xl);
  aspect-ratio: 4/3;
}

.ad-slides-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.ad-slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev/Next buttons */
.ad-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6,15,28,0.65);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition-fast);
  z-index: 2;
}

.ad-slide-btn:hover { background: rgba(6,15,28,0.9); }
.ad-slide-prev { left: 12px; }
.ad-slide-next { right: 12px; }

/* Dots */
.ad-slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.ad-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.ad-dot.active { background: var(--color-teal); }

/* Single image / no image */
.ad-single-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  aspect-ratio: 4/3;
}

.ad-single-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-no-img {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 0.5px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  aspect-ratio: 4/3;
  margin-bottom: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Description ------------------------------------------ */
.ad-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.ad-description p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- Sidebar info card ------------------------------------ */
.ad-info-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.ad-info-title {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.ad-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border-subtle);
  gap: var(--space-sm);
}

.ad-info-row:last-of-type { border-bottom: none; }

.ad-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ad-info-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.ad-info-price { color: var(--color-teal); }

/* Amenities */
.ad-amenities {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-md);
}

.ad-amenity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ad-amenity-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ad-amenity.yes .ad-amenity-icon {
  background: rgba(93,202,165,0.15);
  color: var(--color-teal);
}

.ad-amenity.no .ad-amenity-icon {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.ad-amenity.no { opacity: 0.5; }

/* Contact */
.ad-contact-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
}

.ad-contact-link:hover { text-decoration: underline; }

/* Email obfuscation — reversed text shown via CSS */
.ad-email-obf {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  direction: rtl;
  unicode-bidi: bidi-override;
}

/* Back link */
.ad-back-link {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.ad-back-link:hover { color: var(--color-teal); }