/* ============================================================
   Accommodation Cards – front-end & TinyMCE editor styles
   File: tinymce/accommodation-block.css

   ✏️  OVERRIDE TOKENS in your child theme's style.css:

   .accommodation-cards {
       --ac-cols:          2;
       --ac-gap:           24px;
       --ac-radius:        16px;
       --ac-shadow:        0 2px 12px rgba(0,0,0,.08);
       --ac-img-ratio:     56%;
       --ac-badge-bg:      rgba(255,255,255,.92);
       --ac-badge-color:   #1a1a2e;
       --ac-title-color:   #111827;
       --ac-title-size:    1.25rem;
       --ac-capacity-color:#e07b2a;
       --ac-text-color:    #374151;
       --ac-price-color:   #1d3c8f;
       --ac-price-size:    1.3rem;
       --ac-link-color:    #1d3c8f;
   }
   ============================================================ */

.accommodation-cards {
  /* ── Design tokens ── */
  --ac-cols:           2;
  --ac-gap:            24px;
  --ac-radius:         16px;
  --ac-shadow:         0 2px 12px rgba(0, 0, 0, .08);
  --ac-img-ratio:      56%;         /* height as % of width */
  --ac-badge-bg:       rgba(255, 255, 255, .92);
  --ac-badge-color:    #1a1a2e;
  --ac-title-color:    #111827;
  --ac-title-size:     1.25rem;
  --ac-capacity-color: #e07b2a;
  --ac-text-color:     #374151;
  --ac-price-color:    #1d3c8f;
  --ac-price-size:     1.3rem;
  --ac-link-color:     #1d3c8f;

  display:               grid;
  grid-template-columns: repeat(var(--ac-cols), 1fr);
  gap:                   var(--ac-gap);
  margin:                32px 0;
}

/* ── Card shell ─────────────────────────────────────────────── */

.ac-card {
  background:    #fff;
  border-radius: var(--ac-radius);
  box-shadow:    var(--ac-shadow);
  overflow:      hidden;
  display:       flex;
  flex-direction: column;
}

/* ── Image area ─────────────────────────────────────────────── */

.ac-card-image {
  position: relative;
  width:    100%;
  padding-top: var(--ac-img-ratio);
  overflow: hidden;
  background: #e8e8e8;
}

.ac-card-img {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  border-radius: var(--ac-radius) var(--ac-radius) 0 0;
}

/* Placeholder shown when no image URL is set */
.ac-card-img--placeholder {
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      #d1d5db;
  border-radius:   var(--ac-radius) var(--ac-radius) 0 0;
}

.ac-card-img--placeholder span {
  font-size:   0.8rem;
  color:       #6b7280;
  text-align:  center;
  padding:     8px;
}

/* ── Badge ──────────────────────────────────────────────────── */

.ac-badge {
  position:      absolute;
  top:           14px;
  left:          14px;
  background:    var(--ac-badge-bg);
  color:         var(--ac-badge-color);
  font-size:     0.7rem;
  font-weight:   700;
  letter-spacing: .08em;
  padding:       5px 10px;
  border-radius: 20px;
  display:       inline-flex;
  align-items:   center;
  gap:           5px;
  backdrop-filter: blur(4px);
}

.ac-badge-icon {
  font-size: 0.75rem;
  color:     #e07b2a;
}

/* ── Card body ──────────────────────────────────────────────── */

.ac-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ac-card-title {
  font-size:   var(--ac-title-size);
  font-weight: 700;
  color:       var(--ac-title-color);
  margin:      0 0 10px 0;
  padding:     0;
  line-height: 1.25;
  border:      none; /* reset theme */
}

/* ── Capacity row ───────────────────────────────────────────── */

.ac-card-capacity {
  display:     flex;
  align-items: center;
  gap:         6px;
  margin-bottom: 12px;
}

.ac-capacity-icon {
  font-size: 0.9rem;
  opacity:   .85;
}

.ac-capacity-text {
  font-size:      0.72rem;
  font-weight:    700;
  color:          var(--ac-capacity-color);
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ── Description ────────────────────────────────────────────── */

.ac-card-desc {
  font-size:   0.9rem;
  color:       var(--ac-text-color);
  line-height: 1.6;
  margin:      0 0 auto 0;
  padding:     0;
}

/* ── Footer: price + link ───────────────────────────────────── */

.ac-card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-top:      20px;
  padding-top:     16px;
  border-top:      1px solid #f0f0f0;
}

.ac-card-price {
  font-size:   var(--ac-price-size);
  font-weight: 700;
  color:       var(--ac-price-color);
}

.ac-card-link {
  font-size:       0.9rem;
  font-weight:     600;
  color:           var(--ac-link-color);
  text-decoration: none;
  display:         inline-flex;
  align-items:     center;
  gap:             4px;
}

.ac-card-link:hover {
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 700px) {
  .accommodation-cards {
    --ac-cols: 1;
  }
}
