/* ====================================================
   TropiCollage Travel Agency — Main Stylesheet
   ==================================================== */

/* --- Variables --- */
:root {
    --primary:      #006994;
    --primary-dark: #004f70;
    --secondary:    #f5a623;
    --accent:       #e84c3d;
    --success:      #25d366; /* WhatsApp green */
    --dark:         #1a1a2e;
    --light-bg:     #f0f7fb;
    --card-shadow:  0 4px 20px rgba(0,105,148,.12);
    --radius:       14px;
    --font-body:    'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* --- Base --- */
body {
    font-family: var(--font-body);
    color: #2d2d2d;
    line-height: 1.65;
    background: #fff;
}
a { color: var(--primary); transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* --- Top Bar --- */
.topbar {
    background: var(--primary-dark);
    font-size: .8rem;
}
.topbar a:hover { opacity: .85; }

/* --- Navbar Brand --- */
.navbar { border-bottom: 3px solid var(--secondary); }
.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.brand-logo-img {
    width: 44px; height: 44px;
    object-fit: contain;
}
.brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.1;
}
.brand-sub { font-size: .65rem; letter-spacing: .12em; color: var(--secondary); text-transform: uppercase; }
.navbar .nav-link { font-weight: 500; color: #2d2d2d; padding: .5rem .75rem; border-radius: 6px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); background: var(--light-bg); }

/* --- Buttons --- */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #d4891a; border-color: #d4891a; color: #fff; }
.btn-whatsapp { background: var(--success); border-color: var(--success); color: #fff; font-weight: 600; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #c43a2d; border-color: #c43a2d; color: #fff; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0090c0 100%);
    position: relative; overflow: hidden; padding: 90px 0;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,170.7C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L0,320Z"/></svg>') no-repeat bottom center;
    background-size: cover;
}
.hero-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .9; }
.hero-badge {
    display: inline-block;
    background: rgba(245,166,35,.25);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: .3rem .9rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-stats { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.5rem; margin-top: 1.5rem; }
.hero-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--secondary); }
.hero-stat-label { font-size: .8rem; opacity: .8; }
.hero-search {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.hero-search .form-control, .hero-search .form-select {
    border-radius: 8px;
    padding: .65rem 1rem;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.9);
}

/* --- Section Headers --- */
.section-badge {
    display: inline-block;
    background: rgba(0,105,148,.1);
    color: var(--primary);
    padding: .3rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--dark); }
.section-divider { width: 60px; height: 4px; background: linear-gradient(to right, var(--primary), var(--secondary)); border-radius: 2px; margin: .75rem auto 0; }

/* --- Cards --- */
.card { border: none; border-radius: var(--radius); box-shadow: var(--card-shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,105,148,.18); }
.card-img-top { border-radius: var(--radius) var(--radius) 0 0; object-fit: cover; height: 200px; }
.card-img-tall { height: 260px; }

/* --- Flight Card --- */
.flight-card .badge-route { font-size: .7rem; }
.flight-card .price-tag { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.flight-card .route-line {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 600; font-size: .95rem;
}
.route-arrow { color: var(--secondary); }
.featured-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--secondary); color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: .2rem .7rem; border-radius: 50px;
    text-transform: uppercase; letter-spacing: .05em;
}

/* --- Casa Card --- */
.casa-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.casa-amenities .badge { font-size: .7rem; font-weight: 500; }

/* --- Car Cards --- */
.car-category-badge {
    font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    padding: .25rem .7rem; border-radius: 50px;
}
.car-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.car-price span { font-size: .8rem; font-weight: 400; color: #777; }

/* --- News Card --- */
.news-card .news-date { font-size: .75rem; color: #888; }
.news-card .news-title { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.news-card .card-img-top { height: 180px; }

/* --- Page Hero (inner pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; padding: 60px 0;
}
.page-hero h1 { font-family: var(--font-display); }

/* --- Services Section --- */
.service-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff; margin: 0 auto 1rem;
    transition: transform .25s;
}
.service-box:hover .service-icon { transform: scale(1.12) rotate(-5deg); }
.service-box { text-align: center; padding: 2rem 1.5rem; }

/* --- Why Choose Us --- */
.feature-icon {
    width: 56px; height: 56px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--primary);
    flex-shrink: 0;
}

/* --- Contact --- */
.contact-card { border-left: 4px solid var(--primary); }
.contact-icon {
    width: 52px; height: 52px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.3rem; flex-shrink: 0;
}
.contact-icon.wa { background: #d4f5e2; color: var(--success); }

/* --- Forms --- */
.form-label { font-weight: 500; font-size: .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0,105,148,.15); }
.required-star { color: var(--accent); }

/* --- Admin Navbar --- */
.admin-nav { background: var(--dark); }
.admin-nav .navbar-brand { color: var(--secondary) !important; font-weight: 700; }
.admin-nav .nav-link { color: rgba(255,255,255,.8); }
.admin-nav .nav-link:hover { color: #fff; }

/* --- Admin Stats --- */
.stat-card { border-radius: var(--radius); overflow: hidden; border: none; }
.stat-card .stat-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-card .stat-num { font-size: 2rem; font-weight: 700; }

/* --- Table --- */
.table-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.table thead th { background: var(--primary); color: #fff; font-weight: 600; font-size: .85rem; border: none; padding: .85rem 1rem; }
.table tbody tr:hover { background: var(--light-bg); }
.table td { vertical-align: middle; padding: .75rem 1rem; font-size: .9rem; }

/* --- Filters Bar --- */
.filter-bar { background: var(--light-bg); border-radius: var(--radius); padding: 1.25rem; }

/* --- WhatsApp Float Button --- */
.wa-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 58px; height: 58px;
    background: var(--success);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    z-index: 999; transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.wa-float:hover { color: #fff; transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.55); }

/* --- Footer --- */
.footer-top { background: var(--dark); padding: 60px 0 40px; }
.footer-bottom { background: #111; padding: 1rem 0; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: #fff; font-weight: 700; }
.footer-brand i { color: var(--secondary); }
.footer-heading { color: var(--secondary); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a, .footer-links li { color: rgba(255,255,255,.7); font-size: .87rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--secondary); }
.footer-social {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.8); font-size: .9rem; text-decoration: none;
    transition: background .2s, color .2s;
}
.footer-social:hover { background: var(--primary); color: #fff; }

/* --- Light BG Sections --- */
.bg-light-blue { background: var(--light-bg); }

/* --- Testimonial --- */
.testimonial-card { border-left: 4px solid var(--secondary); }
.testimonial-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
    .hero { padding: 50px 0; }
    .page-hero { padding: 40px 0; }
    .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.5rem; }
}

/* --- Price category pills --- */
.category-pill {
    cursor: pointer;
    padding: .5rem 1.2rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: #fff;
    font-weight: 600;
    font-size: .85rem;
    transition: all .2s;
    display: inline-block;
}
.category-pill.active, .category-pill:hover { background: var(--primary); color: #fff; }

/* --- Availability Badge --- */
.avail-high { color: #198754; }
.avail-low  { color: #fd7e14; }
.avail-none { color: #dc3545; }

/* --- Pagination --- */
.page-link { color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* --- Smooth scroll --- */
html { scroll-behavior: smooth; }
