/* =========================================================
   TRAVELLER STOP — ULTRA PREMIUM RESPONSIVE STYLE
   Desktop + Mobile App Feel
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --primary-red: #e63946;
    --dark-red: #b5172d;
    --soft-red: #ff6b6b;

    --bg-light: #fffaf5;
    --bg-white: #ffffff;

    --text-dark: #1f2937;
    --text-light: #6b7280;

    --border-color: #ececec;

    --shadow-sm: 0 4px 18px rgba(0,0,0,0.08);
    --shadow-md: 0 12px 35px rgba(0,0,0,0.12);
    --shadow-lg: 0 25px 70px rgba(0,0,0,0.18);

    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;

    --transition: all 0.35s ease;
}

/* =========================================================
   RESET & BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-light);
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    background: linear-gradient(135deg, rgba(20, 0, 0, 0.98), rgba(160, 10, 20, 0.96));
    backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1200;
    box-shadow: 0 4px 25px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    opacity: 0.9;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255,255,255,0.6);
}

.nav-link.active {
    border-bottom: 2px solid #ffffff;
}

i {
    font-style: normal;
    display: inline-block;
    vertical-align: middle;
}

/* Ensure Icons are always visible */
.fas, .far, .fab {
    color: inherit;
}

.navbar.scrolled {
    padding: 0.4rem 0;
    background: rgba(30, 0, 0, 0.98);
}

/* =========================================================
   RESPONSIVE HEADINGS & MOBILE UI
========================================================= */

@media (max-width: 991px) {
    h1, .display-3 { font-size: 2rem !important; }
    h2, .display-4 { font-size: 1.6rem !important; }
    h3 { font-size: 1.3rem !important; }
    .lead { font-size: 0.9rem !important; }
    
    .hero {
        padding: 100px 0 60px;
    }
}

@media (max-width: 576px) {
    h1, .display-3 { font-size: 1.5rem !important; }
    h2, .display-4 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }
    h4 { font-size: 1rem !important; }
    
    .card-title { font-size: 1.1rem !important; }
    .price { font-size: 1.2rem !important; }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .search-btn-circle {
        background: #000000 !important; /* High contrast black for mobile search icon */
        color: #ffffff !important;
        border-radius: 15px !important;
        height: 50px !important;
    }
    
    .search-btn-circle i {
        font-size: 1.3rem !important;
    }
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    min-height: 100svh;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.65)),
                url('https://cdn.dribbble.com/userupload/46498337/file/6cd239dd84af81afceb81dc4d85afbd7.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 90px;
    margin-top: -56px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 40%);
    pointer-events: none;
}

.hero h1, .hero .display-3 {
    color: white;
}

.hero p.lead {
    color: rgba(255,255,255,0.88);
    font-size: 1.08rem;
}

/* =========================================================
   SEARCH BOX
========================================================= */

.search-box {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(22px);
    border-radius: 34px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.search-box:hover {
    transform: translateY(-5px);
}

/* =========================================================
   ROOM CARDS
========================================================= */

.room-card {
    border: none;
    border-radius: 30px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.room-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover img {
    transform: scale(1.08);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* =========================================================
   PRICE & BADGES
========================================================= */

.price {
    color: var(--primary-red);
    font-size: 1.7rem;
    font-weight: 700;
}

.badge {
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 50px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-red {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 12px 30px rgba(230,57,70,0.28);
}

.btn-red:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(230,57,70,0.4);
}

/* =========================================================
   FORMS & INPUTS
========================================================= */

.form-control, .form-select {
    border-radius: 18px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    font-size: 0.97rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230,57,70,0.12) !important;
}

/* =========================================================
   MODALS
========================================================= */

.modal-content {
    border-radius: 28px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
}

/* =========================================================
   TABLES
========================================================= */

.table th {
    font-weight: 600;
    color: var(--text-dark);
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: rgba(255,255,255,0.85);
    padding: 80px 0 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 8px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230,57,70,0.3);
}

.newsletter-form .form-control {
    border-radius: 16px;
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

.newsletter-form .btn-red {
    border-radius: 12px;
    margin: 6px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    padding: 0 20px;
}

/* =========================================================
   PREMIUM UTILITIES & MODERN UI
========================================================= */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.bg-premium {
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.sticky-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

@media (max-width: 991px) {
    .sticky-booking-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.amenity-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #475569;
    transition: var(--transition);
}

.amenity-pill:hover {
    background: white;
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* =========================================================
   PREMIUM SEARCH & HERO COMPONENTS
========================================================= */

.unified-search-bar {
    background: white;
    border-radius: 100px;
    padding: 8px 12px 8px 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    max-width: 850px;
    width: 100%;
}

.unified-search-bar:focus-within {
    box-shadow: 0 20px 60px rgba(230,57,70,0.25);
    transform: scale(1.01);
}

.search-input-group {
    flex: 1;
    border-right: 1px solid #eee;
    padding: 0 15px;
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.search-input {
    border: none;
    padding: 0;
    font-size: 0.95rem;
    width: 100%;
    color: var(--text-light);
    outline: none;
    background: transparent;
}

.search-btn-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary-red);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-btn-circle:hover {
    background: var(--dark-red);
    transform: scale(1.1) rotate(5deg);
}

/* =========================================================
   PREMIUM HOSTING SECTION
========================================================= */

.host-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 80px 60px;
}

.host-banner::before {
    content: "";
    position: absolute;
    top: 0; right: 0; width: 40%; height: 100%;
    background: url('https://images.unsplash.com/photo-1556912177-c54030639a6d?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
    opacity: 0.4;
    mask-image: linear-gradient(to left, black, transparent);
    -webkit-mask-image: linear-gradient(to left, black, transparent);
}

/* =========================================================
   INTERACTIVE BUTTONS
========================================================= */

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.96);
}

.btn-glow-red {
    box-shadow: 0 8px 25px rgba(230,57,70,0.3);
}

.btn-glow-red:hover {
    box-shadow: 0 12px 35px rgba(230,57,70,0.5);
}

/* =========================================================
   RESPONSIVE OVERRIDES
========================================================= */

@media (max-width: 991px) {
    .unified-search-bar {
        border-radius: 20px;
        flex-direction: column;
        padding: 12px 15px;
        gap: 8px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    .search-input-group {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 4px 5px;
        width: 100%;
        text-align: left;
    }
    
    .search-input-group:last-of-type {
        border-bottom: none;
    }

    .search-label {
        font-size: 0.65rem;
        margin-bottom: 2px;
        color: rgba(255, 255, 255, 0.8);
    }

    .search-input {
        font-size: 0.95rem;
        height: 28px;
        color: white;
    }

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .search-btn-circle {
        width: 100%;
        border-radius: 12px;
        height: 48px;
        margin-top: 5px;
    }
}

/* =========================================================
   TEMPLATE LAYOUT & GLOBAL COMPONENTS
========================================================= */

main {
    min-height: 70vh;
}

.flash-message {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1300;
    min-width: 300px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: none;
}

.navbar-brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 38px;
    }
}

.navbar-brand:hover img {
    transform: none;
}

/* =========================================================
   INFO PAGES (ABOUT, SERVICES, CONTACT, POLICIES)
========================================================= */

.info-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-hero::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-light);
    border-radius: 50% 50% 0 0;
}

.info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.03);
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-section h4 i {
    color: var(--primary-red);
}

.service-icon-box {
    width: 80px;
    height: 80px;
    background: #fff5f5;
    color: var(--primary-red);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: var(--primary-red);
    color: white;
    transform: rotate(10deg);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #fef2f2;
    color: var(--primary-red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate.slideIn {
    animation: slideIn 0.3s ease-out forwards;
}

/* =========================================================
   ADMIN DASHBOARD STYLES
========================================================= */

.admin-sidebar {
    min-height: 100vh;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.flex-row-mobile {
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .admin-sidebar {
        min-height: auto;
        padding: 10px !important;
        position: sticky;
        top: 56px;
        background: #1a1a1a !important;
    }

    .flex-row-mobile {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .flex-row-mobile .nav-link {
        padding: 8px 15px;
        font-size: 0.85rem;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
    }

    .flex-row-mobile .nav-link.active {
        background: var(--primary-red);
    }
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-red), var(--dark-red));
    border-radius: 50px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    footer {
        padding: 60px 0 30px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .newsletter-form {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer-links {
        text-align: center;
    }
    
    footer h5 {
        text-align: center;
        margin-top: 20px;
    }
    
    .payment-methods {
        text-align: center;
    }
    
    .payment-methods .d-flex {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }
    
    h1, .display-3, .display-4 {
        font-size: 1.8rem !important;
    }
    
    h2, .display-5 {
        font-size: 1.5rem !important;
    }

    .room-card img {
        height: 160px;
    }

    .price {
        font-size: 1.25rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .card-body {
        padding: 0.85rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .unified-search-bar {
        padding: 10px;
        border-radius: 16px;
    }
    
    .search-label {
        font-size: 0.6rem;
    }
    
    .search-input {
        font-size: 0.85rem;
        height: 22px;
    }
}

@media (max-width: 360px) {
    .search-box {
        padding: 1.1rem;
    }
}
