/**
 * Coastal Theme — Partner Directory (Premium)
 *
 * Blue ocean + warm sand palette with premium effects.
 * Partner brand colors override --pd-primary/secondary/accent via inline vars on <body>.
 */

/* ===== HERO ===== */
.pd-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 100px;
  background: linear-gradient(160deg, var(--pd-secondary) 0%, var(--pd-primary) 50%, #1a6fa0 100%);
  color: var(--pd-white);
  overflow: hidden;
}

/* Multi-layer glow */
.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, var(--pd-accent) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 40%, rgba(196, 163, 90, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(187, 225, 250, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Slow shimmer sweep across hero */
.pd-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: heroSweep 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroSweep {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.pd-hero-inner {
  position: relative;
  max-width: 720px;
  z-index: 2;
}

.pd-hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.2));
}

.pd-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.pd-hero-tagline {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.pd-hero-description {
  font-size: 0.95rem;
  opacity: 0.72;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.pd-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pd-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* Wave divider below hero */
.pd-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.pd-hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== FEATURED SECTION ===== */
.pd-featured-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 20px;
}

.pd-featured-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.pd-featured-header h2 {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--pd-secondary);
  letter-spacing: -0.01em;
}

.pd-featured-label {
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--pd-gold), #d4af37);
  color: #fff;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(196, 163, 90, 0.3);
}

.pd-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

/* ===== SECTION ===== */
.pd-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.pd-section-title {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--pd-secondary);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

/* Section divider */
.pd-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== AREA PILLS ===== */
.pd-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.pd-area-pill {
  padding: 8px 18px;
  background: var(--pd-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  font-size: 0.8rem;
  color: var(--pd-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.pd-area-pill:hover,
.pd-area-pill.active {
  background: var(--pd-primary);
  color: var(--pd-white);
  border-color: var(--pd-primary);
}

.pd-area-count {
  font-weight: 600;
  margin-left: 4px;
  opacity: 0.7;
}

/* ===== FILTER BAR ===== */
.pd-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--pd-white);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.pd-filter-input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--pd-sand);
  color: var(--pd-text);
  transition: all 0.2s;
}

.pd-filter-input:focus {
  outline: none;
  border-color: var(--pd-primary);
  background: var(--pd-white);
  box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.08);
}

.pd-filter-input::placeholder {
  color: var(--pd-text-muted);
}

.pd-filter-select {
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--pd-sand);
  color: var(--pd-text);
  cursor: pointer;
  transition: all 0.2s;
}

.pd-filter-select:focus {
  outline: none;
  border-color: var(--pd-primary);
  background: var(--pd-white);
}

/* ===== PROPERTY GRID ===== */
.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ===== PROPERTY CARD ===== */
.pd-card {
  position: relative;
  background: var(--pd-white);
  border-radius: var(--pd-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
}

.pd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 76, 117, 0.1), 0 8px 16px rgba(0,0,0,0.05);
}

.pd-card-image-wrap {
  position: relative;
  overflow: hidden;
}

.pd-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-card:hover .pd-card-image {
  transform: scale(1.05);
}

/* Ocean gradient placeholder when no image */
.pd-card-placeholder {
  width: 100%;
  height: 220px;
  background:
    linear-gradient(160deg, #0e3d5e 0%, #0F4C75 30%, #1a6fa0 55%, #4da8d4 75%, #8ecae6 90%, #BBE1FA 100%);
  position: relative;
}

/* Subtle wave pattern in placeholder */
.pd-card-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(245, 240, 235, 0.15));
}

.pd-card-placeholder::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  filter: blur(3px);
}

/* Glassmorphic badge overlay */
.pd-card-beds-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 2;
}

.pd-card-body {
  padding: 20px;
}

.pd-card-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--pd-secondary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pd-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--pd-text-muted);
  margin-bottom: 14px;
}

.pd-card-location svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.pd-card-stats {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--pd-text-muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pd-card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pd-card-stat svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.pd-card-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pd-primary);
}

.pd-card-price span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--pd-text-muted);
}

/* Featured card */
.pd-card-featured {
  border: 1px solid rgba(196, 163, 90, 0.15);
}

.pd-card-featured:hover {
  box-shadow: 0 20px 40px rgba(196, 163, 90, 0.12), 0 8px 16px rgba(0,0,0,0.05);
}

.pd-card-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--pd-gold), #d4af37);
  color: #fff;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(196, 163, 90, 0.4);
}

/* ===== PROPERTY DETAIL ===== */
.pd-detail-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  overflow: hidden;
}

.pd-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rich ocean gradient when no hero image */
.pd-detail-hero-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, var(--pd-secondary) 0%, var(--pd-primary) 35%, #1a6fa0 55%, #3d9fd4 75%, #7ec8e3 100%);
  position: relative;
}

.pd-detail-hero-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(196, 163, 90, 0.06) 0%, transparent 50%);
}

.pd-detail-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 24px 36px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--pd-white);
}

.pd-detail-hero-overlay h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.pd-detail-hero-location {
  font-size: 0.95rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Floating stats bar */
.pd-detail-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding: 0;
  margin: -28px auto 40px;
  max-width: 600px;
  background: var(--pd-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
  z-index: 4;
}

.pd-detail-stat {
  flex: 1;
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.pd-detail-stat:last-child {
  border-right: none;
}

.pd-detail-stat-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pd-primary);
  display: block;
  margin-bottom: 2px;
}

.pd-detail-stat-label {
  font-size: 0.7rem;
  color: var(--pd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pd-detail-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.pd-detail-description {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--pd-text);
  margin-bottom: 40px;
}

/* ===== AMENITIES ===== */
.pd-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pd-amenity-tag {
  display: inline-block;
  padding: 7px 16px;
  background: rgba(187, 225, 250, 0.25);
  color: var(--pd-primary);
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(15, 76, 117, 0.08);
  transition: all 0.2s;
}

.pd-amenity-tag:hover {
  background: var(--pd-primary);
  color: var(--pd-white);
  border-color: var(--pd-primary);
}

/* ===== GALLERY ===== */
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.pd-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

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

/* ===== RATING ===== */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 14px 20px;
  background: var(--pd-white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.pd-rating-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pd-gold);
}

.pd-rating-source {
  font-size: 0.85rem;
  color: var(--pd-text-muted);
}

/* ===== LINKS / CTA ===== */
.pd-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pd-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.pd-link-btn-primary {
  background: linear-gradient(135deg, var(--pd-primary), #1a6fa0);
  color: var(--pd-white);
  box-shadow: 0 4px 14px rgba(15, 76, 117, 0.3);
}

.pd-link-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 117, 0.35);
}

.pd-link-btn-outline {
  background: transparent;
  color: var(--pd-primary);
  border: 1.5px solid rgba(15, 76, 117, 0.25);
}

.pd-link-btn-outline:hover {
  background: var(--pd-primary);
  color: var(--pd-white);
  border-color: var(--pd-primary);
  transform: translateY(-2px);
}

/* ===== BACK LINK ===== */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pd-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s;
  padding: 8px 0;
}

.pd-back:hover {
  color: var(--pd-primary);
  gap: 10px;
}

/* ===== CONTACT SECTION ===== */
.pd-contact {
  background: var(--pd-white);
  border-radius: 16px;
  padding: 36px;
  margin-top: 40px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.pd-contact h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--pd-secondary);
}

.pd-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--pd-text);
}

.pd-contact-item a {
  color: var(--pd-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.pd-contact-item a:hover {
  color: var(--pd-gold);
}

/* ===== EMPTY / 404 ===== */
.pd-empty {
  text-align: center;
  padding: 100px 24px;
  color: var(--pd-text-muted);
}

.pd-empty p {
  font-size: 1.1rem;
}

.pd-not-found {
  text-align: center;
  padding: 120px 24px;
}

.pd-not-found h1 {
  font-size: 4rem;
  color: var(--pd-primary);
  opacity: 0.3;
  margin-bottom: 16px;
}

.pd-not-found p {
  font-size: 1.1rem;
  color: var(--pd-text-muted);
}

/* ===== SHIMMER TEXT EFFECT ===== */
.pd-shimmer {
  background: linear-gradient(90deg, var(--pd-gold) 0%, #fff 25%, var(--pd-gold) 50%, #fff 75%, var(--pd-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pdShimmer 4s linear infinite;
}

@keyframes pdShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .pd-hero { min-height: 45vh; padding: 70px 20px 80px; }
  .pd-hero h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  .pd-hero-meta { gap: 10px; }
  .pd-hero-count,
  .pd-hero-location { padding: 8px 16px; font-size: 0.75rem; }
  .pd-featured-section { padding: 40px 16px 10px; }
  .pd-featured-grid { grid-template-columns: 1fr; }
  .pd-section { padding: 30px 16px 40px; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-filters { padding: 12px; gap: 8px; }
  .pd-filter-input { min-width: 100%; }
  .pd-detail-hero { height: 40vh; min-height: 300px; }
  .pd-detail-stats {
    margin: -20px 16px 32px;
    flex-wrap: wrap;
    border-radius: 12px;
  }
  .pd-detail-stat {
    min-width: 50%;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .pd-detail-stat:nth-child(2) { border-right: none; }
  .pd-detail-stat:nth-last-child(-n+2) { border-bottom: none; }
  .pd-detail-content { padding: 24px 16px; }
  .pd-gallery { grid-template-columns: repeat(2, 1fr); }
  .pd-contact { padding: 24px 16px; border-radius: 12px; }
  .pd-areas { gap: 8px; }
}

@media (max-width: 480px) {
  .pd-card-stats { flex-wrap: wrap; gap: 8px; }
  .pd-detail-stats { flex-direction: column; }
  .pd-detail-stat {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    min-width: 100%;
  }
  .pd-detail-stat:last-child { border-bottom: none; }
}
