/*
 * luminosa.css — Shared Stylesheet for The Luminosa Chronicle
 * ============================================================
 * CHANGELOG
 * v1.1  2026-06-18  Added .photo-banner, .photo-float, .photo-grid,
 *                   .photo-caption, .link-* helper classes for
 *                   inline photo and hyperlink enhancements.
 * v1.0  2026-06-18  Initial extraction from vol1–vol3 inline styles.
 *
 * USAGE
 *   <link rel="stylesheet" href="luminosa.css">
 *   Add a <style> block after the link for any vol-specific overrides.
 */

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
    --navy:        #1a3a5c;
    --ocean:       #2b6cb0;
    --glacier:     #63b3ed;
    --fog:         #ebf4ff;
    --gold:        #c9a227;
    --gold-light:  #f6e9c0;
    --ink:         #2d3748;
    --muted:       #718096;
    --bg:          #f0f4f8;
    --white:       #ffffff;
    --rule:        #cbd5e0;
    --tip-bg:      #e6fffa;
    --tip-border:  #2c7a7b;
    --warn-bg:     #fffaf0;
    --warn-border: #dd6b20;
    --green:       #276749;
    --green-bg:    #f0fff4;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    margin: 0;
    padding: 20px 10px 60px;
}

a { color: var(--ocean); }
a:hover { text-decoration: underline; }

/* ================================================================
   LAYOUT: CONTAINER
   ================================================================ */
.container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* ================================================================
   MASTHEAD
   ================================================================ */
.masthead {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2744 40%, #1a4a6e 100%);
    color: var(--white);
    padding: 36px 40px 34px;
    position: relative;
    overflow: hidden;
}
.masthead::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--glacier), var(--gold));
}
.vol-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.78em;
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}
.masthead-badge {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}
.masthead h1  { font-size: 2em; margin: 0 0 8px; line-height: 1.2; }
.masthead-sub { font-size: 1em; color: var(--glacier); margin: 0; }

/* ================================================================
   META STRIP
   ================================================================ */
.meta-strip {
    background: var(--fog);
    border-bottom: 1px solid var(--rule);
    padding: 12px 40px;
    font-size: 0.82em;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.meta-strip span strong { color: var(--navy); }

/* ================================================================
   CONTENT AREA
   ================================================================ */
.content { padding: 36px 40px; }

h2 {
    color: var(--navy);
    font-size: 1.3em;
    border-left: 4px solid var(--ocean);
    padding-left: 12px;
    margin: 36px 0 12px;
}
h3 { color: var(--ocean); font-size: 1.05em; margin: 22px 0 6px; }
p  { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li     { margin-bottom: 7px; }

.divider {
    border: none;
    border-top: 1px dashed var(--rule);
    margin: 30px 0;
}

/* ================================================================
   PHOTOS
   ================================================================ */

/* Full-width banner image — used after masthead or at section tops */
.photo-banner {
    width: 100%;
    display: block;
    line-height: 0;
}
.photo-banner img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Float photo — right-aligned within text flow */
.photo-float {
    float: right;
    margin: 0 0 16px 20px;
    max-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--rule);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.photo-float img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Side-by-side two-photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.photo-grid figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--rule);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.photo-grid figure img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

/* Single centered photo */
.photo-center {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--rule);
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.photo-center img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Caption — used under any photo element */
.photo-caption {
    font-size: 0.75em;
    color: var(--muted);
    padding: 6px 10px 8px;
    background: var(--fog);
    line-height: 1.4;
}
.photo-caption a { color: var(--muted); }

/* Clearfix for floated photos */
.clearfix::after { content: ""; display: table; clear: both; }

/* ================================================================
   CALLOUT BOXES
   ================================================================ */
.tip-box {
    background: var(--tip-bg);
    border-left: 4px solid var(--tip-border);
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin: 20px 0;
}
.tip-box .box-label {
    font-weight: 700;
    color: var(--tip-border);
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.tip-box p { margin: 0; font-size: 0.95em; }

.warn-box {
    background: var(--warn-bg);
    border-left: 4px solid var(--warn-border);
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin: 20px 0;
}
.warn-box .box-label {
    color: var(--warn-border);
    font-weight: 700;
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.warn-box p { margin: 0; font-size: 0.95em; }

.highlight-box {
    background: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 24px 0;
}
.highlight-box h3  { color: #7b5e00; margin-top: 0; }
.highlight-box ul  { margin-bottom: 0; }

/* ================================================================
   EXCURSION / COST COMPARISON TABLE
   ================================================================ */
.excursion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86em;
    margin: 18px 0;
}
.excursion-table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 12px;
    text-align: left;
}
.excursion-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.excursion-table tr:nth-child(even) td { background: var(--fog); }
.excursion-table .price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.excursion-table .save  { color: var(--green); font-weight: 600; }
.excursion-table .rating { color: var(--gold); }
.excursion-table .carnival { background: #fff8e1; }

/* ================================================================
   ACTIVITY CARDS GRID
   ================================================================ */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.activity-card {
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 16px 14px;
    background: var(--fog);
}
.activity-card .act-icon  { font-size: 1.6em; margin-bottom: 6px; }
.activity-card .act-name  { font-weight: 700; color: var(--navy); font-size: 0.92em; margin-bottom: 4px; }
.activity-card .act-cost  { font-size: 0.8em; color: var(--green); font-weight: 600; }
.activity-card .act-note  { font-size: 0.78em; color: var(--muted); margin-top: 4px; }

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline { list-style: none; padding: 0; margin: 18px 0; }
.timeline li {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: none; }
.tl-time   { min-width: 70px; font-weight: 700; color: var(--ocean); font-size: 0.85em; padding-top: 2px; }
.tl-body   { flex: 1; font-size: 0.93em; }
.tl-body strong { color: var(--navy); }

/* ================================================================
   STATS GRID
   ================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.stat-card {
    background: var(--fog);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    border: 1px solid var(--rule);
}
.stat-card .stat-num   { font-size: 1.6em; font-weight: 700; color: var(--navy); }
.stat-card .stat-label { font-size: 0.78em; color: var(--muted); margin-top: 2px; }

/* ================================================================
   WEATHER GRID
   ================================================================ */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.weather-card {
    background: var(--fog);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}
.weather-card .port   { font-weight: 700; color: var(--navy); font-size: 0.9em; }
.weather-card .temp   { font-size: 1.4em; color: var(--ocean); font-weight: 700; margin: 4px 0; }
.weather-card .detail { font-size: 0.75em; color: var(--muted); }

/* ================================================================
   ITINERARY TABLE
   ================================================================ */
.itin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    margin: 18px 0;
}
.itin-table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 12px;
    text-align: left;
}
.itin-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.itin-table tr:nth-child(even) td { background: var(--fog); }
.itin-table .dn { font-weight: 700; color: var(--ocean); white-space: nowrap; }
.sea-day td     { color: var(--muted); font-style: italic; }

/* ================================================================
   COST TABLE
   ================================================================ */
.cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87em;
    margin: 16px 0;
}
.cost-table th {
    background: var(--ocean);
    color: var(--white);
    padding: 9px 12px;
    text-align: left;
}
.cost-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.cost-table tr:nth-child(even) td { background: var(--fog); }
.cost-table .free { color: #276749; font-weight: 600; }
.cost-table .tip  { color: #7b5e00; font-style: italic; font-size: 0.9em; }

/* ================================================================
   NAV LINKS
   ================================================================ */
.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    font-size: 0.85em;
}
.nav-links a       { color: var(--ocean); text-decoration: none; font-weight: 600; }
.nav-links a:hover { text-decoration: underline; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    font-size: 0.78em;
    text-align: center;
    padding: 20px 30px;
    line-height: 1.6;
}
.footer a { color: var(--glacier); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 560px) {
    .masthead, .content, .meta-strip, .nav-links {
        padding-left: 20px;
        padding-right: 20px;
    }
    .masthead h1 { font-size: 1.5em; }
    .photo-float { float: none; max-width: 100%; margin: 0 0 16px 0; }
    .photo-grid  { grid-template-columns: 1fr; }
    .photo-banner img, .photo-center img { height: 200px; }
}
