/* ══════════════════════════════════════════════════════════
   Travel Nest — Main Stylesheet
   ══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
    --tn-primary:    #0d6efd;
    --tn-primary-d:  #0a58ca;
    --tn-accent:     #f97316;
    --tn-dark:       #1e293b;
    --tn-muted:      #64748b;
    --tn-light-bg:   #f8fafc;
    --tn-card-shadow: 0 2px 16px rgba(0,0,0,.08);
    --tn-radius:     12px;
}

/* ── Base ──────────────────────────────────────────────── */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--tn-dark);
    background: #fff;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; }
a:hover { color: var(--tn-primary); }
img { max-width: 100%; }

/* ── Topbar ────────────────────────────────────────────── */
.topbar { background: var(--tn-dark); }
.topbar a { transition: opacity .2s; }
.topbar a:hover { opacity: .75; }

/* ── Navbar Brand ──────────────────────────────────────── */
.brand-icon { color: var(--tn-primary); font-size: 1.6rem; }
.brand-text  { font-size: 1.4rem; font-weight: 700; color: var(--tn-dark); }
.brand-accent { color: var(--tn-primary); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary  { background: var(--tn-primary); border-color: var(--tn-primary); }
.btn-primary:hover { background: var(--tn-primary-d); border-color: var(--tn-primary-d); }
.btn-accent   { background: var(--tn-accent); border-color: var(--tn-accent); color: #fff; }
.btn-accent:hover { background: #ea6c10; color: #fff; }

/* ── HERO ──────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0369a1 60%, #1e293b 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: .18;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.hero-subtitle { color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ── Search Box ─────────────────────────────────────────── */
.search-box {
    background: #fff;
    border-radius: var(--tn-radius);
    padding: 24px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
    margin-top: 28px;
}
.search-box .form-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--tn-muted);
    margin-bottom: 4px;
}
.search-box .form-control,
.search-box .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    height: 46px;
    font-size: .95rem;
}
.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--tn-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.btn-search {
    height: 46px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    background: var(--tn-accent);
    border: none;
    color: #fff;
    width: 100%;
}
.btn-search:hover { background: #ea6c10; color: #fff; }

/* ── Section Headings ───────────────────────────────────── */
.section-heading { font-weight: 700; font-size: 1.6rem; color: var(--tn-dark); }
.section-subheading { color: var(--tn-muted); font-size: .95rem; }

/* ── Hotel Cards ────────────────────────────────────────── */
.hotel-card {
    border: none;
    border-radius: var(--tn-radius);
    overflow: hidden;
    box-shadow: var(--tn-card-shadow);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.hotel-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.hotel-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.hotel-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.hotel-card:hover .hotel-img-wrapper img {
    transform: scale(1.06);
}

.badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--tn-accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #7c3aed;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.hotel-card .card-body { padding: 16px; }
.hotel-name { font-weight: 700; font-size: 1rem; color: var(--tn-dark); }
.hotel-location { font-size: .82rem; color: var(--tn-muted); }
.hotel-price-tag .price-from { font-size: .75rem; color: var(--tn-muted); }
.hotel-price-tag .price-amount { font-size: 1.25rem; font-weight: 800; color: var(--tn-primary); }
.hotel-price-tag .price-per-night { font-size: .75rem; color: var(--tn-muted); }
.hotel-price-tag .price-original { font-size: .82rem; color: #94a3b8; text-decoration: line-through; }

/* ── Destination Cards ───────────────────────────────────── */
.dest-card {
    border-radius: var(--tn-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 180px;
}
.dest-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.dest-card:hover img { transform: scale(1.08); }
.dest-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.dest-name { color: #fff; font-weight: 700; font-size: 1rem; }
.dest-count { color: rgba(255,255,255,.8); font-size: .78rem; }

/* ── Why Us section ─────────────────────────────────────── */
.why-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--tn-radius);
    border: 1.5px solid #e2e8f0;
    transition: border-color .2s, box-shadow .2s;
}
.why-card:hover {
    border-color: var(--tn-primary);
    box-shadow: var(--tn-card-shadow);
}
.why-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--tn-primary);
}

/* ── Deals / Offer Banner ────────────────────────────────── */
.offer-banner {
    background: linear-gradient(135deg, #7c3aed, #0d6efd);
    border-radius: var(--tn-radius);
    padding: 40px 36px;
    color: #fff;
}
.offer-banner h3 { font-weight: 800; font-size: 2rem; }
.offer-code {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 2px dashed rgba(255,255,255,.6);
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ── Review Stars ────────────────────────────────────────── */
.review-badge {
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .88rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: #fff; border-top: 1px solid #e2e8f0; }
.footer-top { background: var(--tn-light-bg); }
.footer-heading {
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--tn-dark);
    margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li {
    margin-bottom: 8px;
    font-size: .88rem;
    color: var(--tn-muted);
}
.footer-links a { color: var(--tn-muted); transition: color .2s; }
.footer-links a:hover { color: var(--tn-primary); }
.footer-bottom { background: var(--tn-dark); }
.footer-bottom .text-muted { color: #94a3b8 !important; }

.social-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: var(--tn-dark);
    font-size: .95rem;
    transition: background .2s, color .2s;
}
.social-icon:hover { background: var(--tn-primary); color: #fff; }

/* ── Amenity Pills ──────────────────────────────────────── */
.amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .78rem;
    color: var(--tn-muted);
}

/* ── Skeleton loader ────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb-section {
    background: var(--tn-light-bg);
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-page {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 100%);
    min-height: calc(100vh - 130px);
}
.auth-card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0369a1 100%);
}
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.auth-divider span { padding: 0 12px; }

/* Role tabs (login/register) */
.role-tabs .nav-link {
    border-radius: 8px;
    color: var(--tn-muted);
    font-size: .88rem;
    font-weight: 500;
    padding: 6px 10px;
}
.role-tabs .nav-link.active {
    background: var(--tn-primary);
    color: #fff;
}

/* ── Dashboard sidebar (shared admin/hotel) ─────────────── */
.dash-sidebar {
    background: var(--tn-dark);
    min-height: 100vh;
    width: 250px;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    transition: transform .3s;
}
.dash-sidebar.collapsed { transform: translateX(-100%); }
.dash-main { margin-left: 250px; min-height: 100vh; background: var(--tn-light-bg); }
@media (max-width: 991px) {
    .dash-sidebar { transform: translateX(-100%); }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-main { margin-left: 0; }
}

/* ── Hotel list card (search results) ───────────────────── */
.hotel-list-card {
    border-radius: var(--tn-radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.hotel-list-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.12) !important;
    transform: translateY(-2px);
}

/* ── Booking steps progress ──────────────────────────────── */
.booking-steps { display:flex; align-items:center; justify-content:center; }

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 576px) {
    .hero-section { min-height: 420px; }
    .search-box { padding: 18px; }
    .offer-banner h3 { font-size: 1.4rem; }
}
