/* ===================================================================
   style21.css - FINAL COMPLETE CODE - FULLY FORMATTED
   V One Hotels - Premium Dark Theme
   =================================================================== */

/* --- 1. THEME & FONT DEFINITIONS (CSS Variables) --- */
:root {
    --dark-blue-bg: #0d1b2a;
    --light-blue-card: #1b263b;
    --accent-blue: #3a86ff;
    --primary-orange: #ff6700;
    --text-primary: #f0f3f5;
    --text-secondary: #adb5bd;
    --playfair-font: 'Playfair Display', serif;
    --poppins-font: 'Poppins', sans-serif;
}

/* --- 2. GLOBAL & BODY STYLES --- */
body {
    font-family: var(--poppins-font);
    background-color: var(--dark-blue-bg);
    background-image: url('images/bg-pattern.png');
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--text-secondary);
}

/* --- 3. HEADER & NAVIGATION --- */
.navbar {
    background-color: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand img {
    height: 60px;
    transition: transform 0.3s ease;
}

.navbar .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: color 0.3s, transform 0.3s;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- 4. MAIN CONTENT & ANIMATED TITLES --- */
.main-content {
    background: transparent;
    box-shadow: none;
}

.section-title-stylish,
.welcome-headline {
    font-family: var(--playfair-font);
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title-stylish {
    color: var(--text-primary);
    font-size: clamp(2.2rem, 5vw, 2.8rem);
}

.welcome-headline {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary-orange);
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.welcome-headline::after,
.section-title-stylish::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-orange));
    border-radius: 2px;
}

@keyframes flicker-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title-stylish span,
.welcome-headline span {
    display: inline-block;
    opacity: 0;
    animation: flicker-in 0.5s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- 5. "WHY CHOOSE US" SECTION --- */
.why-choose-us h4 {
    color: var(--text-primary);
    font-weight: 600;
}

.text-light-emphasis {
    color: var(--text-secondary) !important;
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue), #5a67d8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 25px rgba(58, 134, 255, 0.4);
}

.why-choose-us .col-md-4:hover .why-choose-icon {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.5);
}

/* --- 6. DARK THEME HOTEL CARD (SPACING FIXES) --- */
.hotel-card {
    border: 1px solid #2a3a4b;
    background-color: var(--light-blue-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.hotel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
}

.hotel-card .card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hotel-card .card-title a:hover {
    color: var(--accent-blue);
}

.hotel-card img {
    /* Ensures the image covers its container without distortion */
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hotel-card .image-link {
    display: block;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.hotel-card .image-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotel-card:hover .image-link::after {
    opacity: 1;
}

.card-text.text-muted-dark {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.amenity-badge {
    background-color: rgba(58, 134, 255, 0.15);
    border: 1px solid rgba(58, 134, 255, 0.3);
    color: #a3c7ff;
    font-weight: 400;
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
}

.hotel-card .price-tag {
    font-size: 1.3rem;
    color: #52b788;
    margin: 0;
    font-weight: 500;
}

/* Styles for the distance chart inside the hotel card */
.distance-chart .text-primary-light {
    color: var(--accent-blue) !important;
}

/* This targets only the <small> tags inside the distance-chart div */
.distance-chart .small {
    color: var(--text-primary); /* Using the theme's main white color */
    opacity: 0.9; /* Makes it slightly less bright than main titles for good visual hierarchy */
}

/* --- 7. MODAL STYLES --- */
.modal-content {
    background-color: var(--light-blue-card);
    color: var(--text-primary);
    border: 1px solid var(--accent-blue);
    border-radius: 10px;
}

.modal-header {
    border-bottom: 1px solid #2a3a4b;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.form-control,
.form-select {
    background-color: var(--dark-blue-bg);
    border: 1px solid #2a3a4b;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--dark-blue-bg);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(58, 134, 255, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- 8. FOOTER STYLES --- */
.site-footer {
    background-color: #111111;
    color: #a9a9a9;
    padding: 50px 0;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent-blue);
}

.footer-logo {
    max-width: 180px;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-links a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-address,
.footer-contact li {
    line-height: 1.8;
}

.social-icons {
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
    background-color: var(--accent-blue);
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.copyright-text {
    font-size: 0.85rem;
}

.site-footer .footer-links li {
    padding: 4px 0;
    transition: transform 0.2s ease-out;
}

.site-footer .footer-links li:hover {
    transform: translateX(5px);
}

.site-footer .footer-links li i.fa-map-marker-alt {
    color: var(--accent-blue);
    margin-right: 10px;
    width: 15px;
    text-align: center;
}

/* --- 9. SIDE "BOOK NOW" BUTTON --- */
#side-book-now-btn {
    position: fixed;
    right: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: bottom right;
    z-index: 1000;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    transition: right 0.3s ease;
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

#side-book-now-btn:hover {
    right: -5px;
}