/* =============================================================================
   Jahangiri Fort Hotel - Public Website Stylesheet
   ============================================================================= */

:root {
    --pub-primary: #1a3a4a;
    --pub-accent: #c8956c;
    --pub-accent-hover: #b07a54;
    --pub-dark: #0f2027;
    --pub-light: #f9f7f4;
    --pub-text: #333;
    --pub-muted: #6c757d;
    --pub-font-display: 'Playfair Display', serif;
    --pub-font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--pub-font-body);
    color: var(--pub-text);
    background: #fff;
}

/* --- Top Bar (Utility Strip) --- */
.top-bar {
    background: var(--pub-dark);
    padding: 0.4rem 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar a:hover {
    color: var(--pub-accent);
}
.top-bar .offers-link {
    color: #ffc107;
    font-weight: 500;
}
.top-bar .offers-link:hover {
    color: #ffcd39;
}

/* --- Navigation --- */
.navbar {
    background: rgba(26, 58, 74, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.6rem 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(15, 32, 39, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
    font-family: var(--pub-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff !important;
}
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.88rem;
    font-weight: 400;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--pub-accent) !important;
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.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");
}
.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-nav-outline {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-nav-outline:hover {
    border-color: var(--pub-accent);
    color: var(--pub-accent);
}

/* --- Buttons --- */
.btn-accent {
    background: var(--pub-accent);
    border-color: var(--pub-accent);
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
}
.btn-accent:hover, .btn-accent:focus {
    background: var(--pub-accent-hover);
    border-color: var(--pub-accent-hover);
    color: #fff;
}

/* --- Clean Hero (booking-focused, no images) --- */
.hero-clean {
    background: linear-gradient(135deg, #0f2027 0%, #1a3a4a 60%, #2c5364 100%);
    color: #fff;
    padding: 2.5rem 0 3rem;
    text-align: center;
}
.hero-clean h1 {
    font-family: var(--pub-font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.hero-clean .hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin: 0 auto 1.5rem;
    max-width: 540px;
}
.hero-clean .hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Hero Booking Bar */
.hero-booking-bar {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,149,108,0.3);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}
.hero-booking-bar label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}
.hero-booking-bar .form-control,
.hero-booking-bar .form-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.9rem;
}
.hero-booking-bar .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}
.hero-booking-bar .form-control:focus,
.hero-booking-bar .form-select:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--pub-accent);
    box-shadow: none;
    color: #fff;
}

/* --- Booking Bar (standalone section) --- */
.booking-bar {
    background: var(--pub-primary);
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--pub-font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--pub-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--pub-accent);
    border-radius: 2px;
}
.section-subtitle {
    color: var(--pub-muted);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

/* --- Feature Cards --- */
.feature-card {
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid #eee;
    border-left: 3px solid var(--pub-accent);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(200, 149, 108, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--pub-accent);
}
.feature-card h4 {
    font-family: var(--pub-font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--pub-primary);
}
.feature-card p {
    color: var(--pub-muted);
    font-size: 0.87rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Room Cards --- */
.room-listing-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.room-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.room-listing-card .room-img {
    height: 220px;
    background: linear-gradient(135deg, #1a3a4a, #2c5364);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
}
.room-listing-card .room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.room-listing-card .room-body {
    padding: 1.5rem;
}
.room-listing-card .room-body h4 {
    font-family: var(--pub-font-display);
    margin-bottom: 0.5rem;
}
.room-listing-card .room-body .room-type {
    font-size: 0.8rem;
    color: var(--pub-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.room-listing-card .room-body .room-desc {
    font-size: 0.875rem;
    color: var(--pub-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.room-listing-card .room-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.room-listing-card .room-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pub-primary);
}
.room-listing-card .room-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--pub-muted);
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}
@media (max-width: 991.98px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s;
}
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}
.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.75rem 0.6rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Gallery filter pills */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.gallery-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: var(--pub-text);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-filter-pill:hover {
    border-color: var(--pub-accent);
    color: var(--pub-accent);
}
.gallery-filter-pill.active {
    background: var(--pub-accent);
    border-color: var(--pub-accent);
    color: #fff;
}
.gallery-filter-pill .filter-count {
    font-size: 0.68rem;
    opacity: 0.7;
}
.gallery-filter-pill i {
    font-size: 0.85rem;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--pub-primary), #2c5364);
    padding: 8rem 0 3rem;
    text-align: center;
    color: #fff;
}
.page-header h1 {
    font-family: var(--pub-font-display);
    font-size: 2.5rem;
    font-weight: 700;
}
.page-header p {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0.5rem auto 0;
}

/* --- Forms --- */
.form-section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}
.form-control:focus, .form-select:focus {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 0.2rem rgba(200, 149, 108, 0.15);
}

/* --- Footer --- */
.site-footer {
    background: var(--pub-dark);
    color: #fff;
    padding: 3rem 0 1.5rem;
}
.site-footer h5, .site-footer h6 {
    font-family: var(--pub-font-display);
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--pub-accent);
}

/* --- Confirmation Card --- */
.confirmation-card {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}
.confirmation-card .ref-code {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--pub-primary);
    font-family: monospace;
}

/* Payment hold UI */
.ref-code {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--pub-primary);
    font-family: monospace;
}
.card.border-dashed {
    border: 2px dashed #dee2e6 !important;
}
.card.border-dashed:hover {
    border-color: #adb5bd !important;
}
#uploadDropzone {
    padding: 1rem;
}
#uploadDropzone:hover {
    background: #f8f9fa;
    border-radius: 4px;
}

/* --- Scroll Animations (CSS-only, progressive enhancement) --- */
@supports (animation-timeline: view()) {
    .fade-in-section {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .fade-in-section:nth-child(2) { animation-delay: 0.1s; }
    .fade-in-section:nth-child(3) { animation-delay: 0.2s; }
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #fff;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}
.whatsapp-float i {
    font-size: 1.6rem;
}
@media (max-width: 576px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float i { font-size: 1.3rem; }
}

/* --- Google Map --- */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .booking-bar { margin-top: 0; }
    .page-header { padding: 6rem 0 2rem; }
    .page-header h1 { font-size: 2rem; }
    .top-bar { display: none; }
}

/* --- Toast container for public site --- */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 11000;
}

/* =============================================================================
   Press-and-Hold Anti-Bot Button
   ============================================================================= */
.hold-btn-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.hold-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.hold-btn .hold-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(255,255,255,0.25);
    border-radius: inherit;
    transition: none;
    pointer-events: none;
}
.hold-btn.holding .hold-progress {
    transition: width 1.5s linear;
    width: 100%;
}
.hold-btn.confirmed {
    pointer-events: none;
    opacity: 0.7;
}
.hold-btn .hold-text-idle,
.hold-btn .hold-text-holding,
.hold-btn .hold-text-confirmed {
    transition: opacity 0.2s;
}
.hold-btn:not(.holding):not(.confirmed) .hold-text-holding,
.hold-btn:not(.holding):not(.confirmed) .hold-text-confirmed { display: none; }
.hold-btn.holding .hold-text-idle,
.hold-btn.holding .hold-text-confirmed { display: none; }
.hold-btn.confirmed .hold-text-idle,
.hold-btn.confirmed .hold-text-holding { display: none; }

/* =============================================================================
   Hero Logo Responsive
   ============================================================================= */
@media (max-width: 767.98px) {
    .hero-logo-abs {
        display: none !important;
    }
    .hero-logo-mobile {
        display: inline-block !important;
    }
}
@media (min-width: 768px) {
    .hero-logo-abs {
        display: block !important;
    }
    .hero-logo-mobile {
        display: none !important;
    }
}

/* =============================================================================
   Logo Download Protection
   ============================================================================= */
.hero-logo-abs,
.hero-logo-mobile {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}
