/* =========================================================
   PRICE COMPARISON PAGE STYLES (page-specific)
   ========================================================= */

/* ===============================
   Highlighted takeaway / checklist
   =============================== */

.highlighted-list {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem 1.5rem 1.5rem;
  background: #fafafa;
  border-radius: 0.75rem;
  color: #1f2a1f;
}

/* Accent rail */
.highlighted-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0px; /* last value wins */
  background: rgba(73, 97, 37, 0.35);
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
}

.highlighted-list h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2a3526;
}

.highlighted-list ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.highlighted-list li {
  margin-bottom: 0.75rem;
}

/* =========================================
   Day cost comparison layout (page-specific)
   ========================================= */

.day-cost-group {
  position: relative;
  margin: 1.5rem 0 1.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: 14px;
  background: #f7f9f6;
  border: 1px solid rgba(0,0,0,0.16);
}

/* subtle paper-like texture */
.day-cost-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 1px 1px,
      rgba(0,0,0,0.035) 1px,
      transparent 0
    );
  background-size: 6px 6px;
  opacity: 0.15;
  pointer-events: none;
}

.day-cost-group > h3 {
  text-align: center;
  margin: 0 0 1.25rem;
  font-weight: 500;
}

/* Snapshot header */
.day-cost-group .cost-comparison {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.05);
}

.day-cost-group .cost-comparison .rundown-section + .rundown-section {
  margin-top: 0.75rem;
}

/* =========================================
   TABLE SECTION CONTAINERS
   ========================================= */

.card {
  padding: 15px;
}

.card.public,
.card.car,
.card.rundown {
  padding: 12px 14px;
  margin: 1rem 0;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #e2e2e2;
}

/* Public transport */
.card.public {
  border-left: 4px solid #4f6f52;
}

.card.public h3 {
  margin-top: 0;
  color: #3f5f42;
}

.card.public thead th {
  background: #f4f7f4;
}

.card.public .icon,
.card.public [class*="icon"] {
  color: #4f6f52;
}

/* Car */
.card.car {
  border-left: 4px solid #8a4b4b;
}

.card.car h3 {
  margin-top: 0;
  color: #6f3a3a;
}

.card.car thead th {
  background: #f8f3f3;
}

.card.car .icon,
.card.car [class*="icon"] {
  color: #8a4b4b;
}

/* Rundown */
.card.rundown {
  border: 2px solid #4f6f52;
  background: #f9fbf9;
}

.card.rundown h3 {
  margin-top: 0;
}

.card.rundown thead th {
  background: #eef3ee;
}

/* =========================================
   Base table styling
   ========================================= */
/* 
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0 0.8rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

thead th {
  text-align: left;
  font-weight: 600;
  padding: 0.6rem 0.7rem;
  border-bottom: 2px solid #ddd;
  background: #f7f7f7;
}

td,
th {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: #fafafa;
}

td:nth-child(2),
th:nth-child(2),
td:nth-child(3),
th:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}
*/
/* BASE TABLE — remove totals border from global rule */
table tr:last-child td {
  background: #fbfcfb;
}

/* PUBLIC card total separator */
.card.public tbody tr:nth-last-child(2) td {
  border-bottom: 2px solid #4f6f52;
}

/* CAR card total separator */
.card.car tbody tr:nth-last-child(2) td {
  border-bottom: 2px solid #8a4b4b;
}



/* =========================================
   Cumulative summary band
   ========================================= */

.daily-summary {
  margin: 1.75rem 0 2rem;
}

.daily-summary .cost-comparison {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.75rem;
  background:
    linear-gradient(
      to bottom,
      rgba(246,248,245,0.9),
      rgba(246,248,245,0.5)
    );
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.03),
    0 10px 24px rgba(0,0,0,0.06);
}

.daily-summary .per-person {
  opacity: 0.75;
}

.daily-summary .rundown-diff strong {
  font-size: 1.4rem;
}

/* =========================================
   Headings
   ========================================= */

.day-cost-group h4,
.daily-summary h4 {
  text-align: center;
  margin-bottom: 0.75rem;
}

/* =========================================
   Mobile tuning
   ========================================= */

@media (max-width: 700px) {
  table {
    font-size: 0.9rem;
  }

  td,
  th {
    padding: 0.5rem 0.55rem;
  }

  .card.public,
  .card.car,
  .card.rundown {
    padding: 10px 12px;
  }
}

.collapsible-checklist-section > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none; /* remove triangle */
}

.collapsible-checklist-section > summary::-webkit-details-marker {
  display: none; /* Safari / Chrome */
}

.emph {
    font-size: 1em!important;
}