/* ═══════════════════════════════════════════════════════
   RinewTrip — Public Vitrine Styles
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Poppins:wght@400;500;600&display=swap');

/* ─── Design Tokens ─────────────────────────────────── */
:root {
    --color-accent:      #636854;
    --color-accent-dark: #4e5342;
    --color-bg:          #f4f2ed;
    --color-surface:     #ffffff;
    --color-text:        #2d2d2a;
    --color-text-muted:  #7a7a6e;
    --color-border:      #dddbd4;
    --font-title:        'Sora', sans-serif;
    --font-body:         'Poppins', sans-serif;
    --radius-sm:         6px;
    --radius-md:         12px;
    --radius-lg:         20px;
    --shadow-card:       0 2px 16px rgba(99, 104, 84, 0.10);
    --shadow-hover:      0 6px 24px rgba(99, 104, 84, 0.18);
    --transition:        0.2s ease;
    --max-width:         1200px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    line-height: 1.2;
    font-weight: 700;
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}
.site-logo {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
}
.site-logo strong { color: var(--color-text); }
.site-tagline {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    display: none;
}
@media (min-width: 600px) { .site-tagline { display: block; } }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--color-accent) 0%, #4e5342 100%);
    color: #fff;
    text-align: center;
    padding: 64px 24px 56px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-family: var(--font-title);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 520px;
    margin: 0 auto;
}

/* ─── Tab Navigation ─────────────────────────────────── */
.tab-nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 64px;
    z-index: 90;
}
.tab-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tab-nav-inner::-webkit-scrollbar { display: none; }
.tab-btn {
    font-family: var(--font-title);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 14px 20px;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tab-btn:hover { color: var(--color-accent); }
.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ─── Main Content ───────────────────────────────────── */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ─── Section Title ──────────────────────────────────── */
.section-header {
    margin-bottom: 28px;
}
.section-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--color-accent);
    margin-bottom: 6px;
}
.section-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════
   Hotels Section
   ═══════════════════════════════════════════════════════ */
.hotels-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    background: var(--color-surface);
}
.hotels-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.hotels-table thead th {
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    padding: 14px 16px;
    text-align: left;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}
.hotels-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}
.hotels-table tbody tr:last-child { border-bottom: none; }
.hotels-table tbody tr:hover { background: #fafaf7; }
.hotels-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

/* Hotel image + name */
.hotel-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hotel-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.hotel-name {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.97rem;
    display: block;
}
.hotel-visited-badge {
    display: inline-block;
    font-size: 0.72rem;
    background: #eaf0e6;
    color: #3a5c33;
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 3px;
    font-weight: 500;
}

/* Stars */
.stars { color: #e8a020; font-size: 1.05rem; letter-spacing: 1px; }

/* Booking buttons */
.booking-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.btn-book {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition), transform var(--transition);
    white-space: nowrap;
}
.btn-book:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-book-trip    { background: #0055aa; color: #fff; }
.btn-book-hoteis  { background: #cc0000; color: #fff; }
.btn-book-booking { background: #003580; color: #fff; }

/* ─── Hotels — Mobile Cards ──────────────────────────── */
@media (max-width: 700px) {
    .hotels-table-wrap { overflow-x: visible; box-shadow: none; background: transparent; }
    .hotels-table, .hotels-table thead, .hotels-table tbody,
    .hotels-table th, .hotels-table td, .hotels-table tr { display: block; }
    .hotels-table thead { display: none; }
    .hotels-table tbody tr {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        padding: 4px 0;
        box-shadow: var(--shadow-card);
    }
    .hotels-table td {
        padding: 10px 16px;
        border: none;
        border-bottom: 1px solid var(--color-border);
    }
    .hotels-table td:last-child { border-bottom: none; }
    .hotels-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--color-text-muted);
        margin-bottom: 4px;
    }
}

/* ═══════════════════════════════════════════════════════
   Products Grid
   ═══════════════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.product-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-bg);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-border);
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.product-name {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}
.product-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    flex: 1;
}
.product-price {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
}
.btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    margin-top: auto;
}
.btn-buy:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

/* ─── Empty state ────────────────────────────────────── */
.empty-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}
.empty-products span { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    text-align: center;
    padding: 28px 24px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.site-footer strong { color: var(--color-text); }
