/* Hotelipp – Frontend Card Styles */

:root {
  --hotelipp-radius: 10px;
  --hotelipp-shadow: 0 2px 12px rgba(0, 0, 0, .1);
  --hotelipp-border: #e5e7eb;
  --hotelipp-text: #1a1a2e;
  --hotelipp-muted: #6b7280;
  --hotelipp-bg: #ffffff;
  --hotelipp-accent: #0066cc;
  --hotelipp-sale: #e53e3e;
}

/* ─── Card wrapper ─────────────────────────── */
.hotelipp-card {
  display: flex;
  gap: 16px;
  border: 1px solid var(--hotelipp-border);
  border-radius: var(--hotelipp-radius);
  overflow: hidden;
  background: var(--hotelipp-bg);
  box-shadow: var(--hotelipp-shadow);
  margin: 1.5em 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: var(--hotelipp-text);
  line-height: 1.5;
}

/* ─── Image column ──────────────────────────── */
.hotelipp-image {
  flex: 0 0 160px;
  position: relative;
  overflow: hidden;
}

.hotelipp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Sale badge ────────────────────────────── */
.hotelipp-sale-badge {
  position: absolute;
  top: 8px;
  left: 0;
  background: var(--hotelipp-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px 3px 6px;
  border-radius: 0 4px 4px 0;
  letter-spacing: .03em;
  animation: hotelipp-pulse 1.6s ease-in-out infinite;
}

@keyframes hotelipp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}

/* ─── Body ──────────────────────────────────── */
.hotelipp-body {
  flex: 1;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* ─── Hotel name ────────────────────────────── */
.hotelipp-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--hotelipp-text);
  line-height: 1.4;
}

/* ─── Address ───────────────────────────────── */
.hotelipp-address {
  font-size: 12px;
  color: var(--hotelipp-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.hotelipp-address-icon {
  font-size: 11px;
}

/* ─── Review ────────────────────────────────── */
.hotelipp-review {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.hotelipp-stars {
  display: flex;
  gap: 1px;
}

.hotelipp-star {
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1;
}

.hotelipp-star--full  { color: #f4c542; }
.hotelipp-star--half  { color: #f4c542; opacity: .6; }

.hotelipp-review-score {
  font-weight: 700;
  color: #f4c542;
}

.hotelipp-review-count {
  color: var(--hotelipp-muted);
  font-size: 12px;
}

/* ─── Price ─────────────────────────────────── */
.hotelipp-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}

.hotelipp-price-label {
  color: var(--hotelipp-muted);
  font-size: 11px;
}

.hotelipp-price-value {
  font-size: 17px;
  font-weight: 700;
  color: #e53e3e;
}

/* ─── Buttons ───────────────────────────────── */
.hotelipp-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hotelipp-btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--btn-color, #333);
  border: 2px solid var(--btn-color, #333);
  background: transparent;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.hotelipp-btn:hover,
.hotelipp-btn:focus {
  background: var(--btn-color, #333);
  color: #fff;
  text-decoration: none;
}

/* ─── Footer attribution ────────────────────── */
.hotelipp-footer {
  margin-top: auto;
  padding-top: 4px;
  text-align: right;
}

.hotelipp-credit {
  font-size: 10px;
  color: #c0c0c0;
  text-decoration: none;
}

.hotelipp-credit:hover {
  color: var(--hotelipp-accent);
  text-decoration: underline;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 600px) {
  .hotelipp-card {
    flex-direction: column;
  }

  .hotelipp-image {
    flex: none;
    height: 180px;
    width: 100%;
  }

  .hotelipp-buttons {
    flex-direction: column;
  }

  .hotelipp-btn {
    width: 100%;
    text-align: center;
  }
}
