﻿/* ============================================
   HOTEL DETAIL PAGE STYLES
   ============================================ */

:root {
    --brand: #0A58CA;
    --brand-dark: #0947A8;
    --brand-light: #E8F0FE;
    --brand-soft: #F0F5FF;
    --purple: #8B5CF6;
    --purple-light: #EDE9FE;
    --gray-50: #F8F9FC;
    --gray-100: #F1F3F7;
    --gray-200: #E9ECF0;
    --gray-500: #9AA4B2;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #212529;
    --gray-900: #1A1F2C;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 35px -12px rgba(0,0,0,0.08);
    --radius: 24px;
    --radius-sm: 24px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.breadcrumb-item a {
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--brand) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-outline-brand {
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 44px;
    font-weight: 500;
    transition: var(--transition);
}
.hotel-header h1{    font-size: 30px;}
.btn-outline-brand:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: white;
    border: none;
    border-radius: 44px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10,88,202,0.25);
}

.btn-brand:disabled,
.btn-brand.disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* ============================================
   RATING BOX & STARS
   ============================================ */
.rating-box {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    font-weight: 700;
    min-width: 44px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.star-filled {
    color: #FBBF24;
}

.star-empty {
    color: var(--gray-300);
}

/* ============================================
   WORK FRIENDLY BADGE
   ============================================ */
.badge-work {
    background: var(--purple);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

/* ============================================
   PREMIUM CARD
   ============================================ */
.hotel-card-premium {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
}

.hotel-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hotel-card-premium .card-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotel-card-premium .card-body {
    padding: 1.5rem;
}

.card-body {
    padding: 24px;
}

/* ============================================
   AMENITIES
   ============================================ */
.amenity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-50);
    border-radius: 40px;
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--gray-700);
}

.work-friendly-card {
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05) !important;
}

.work-friendly-card .card-header {
    background: #fff !important;
    color: var(--gray-900) !important;
    border-bottom: 1px solid var(--gray-200);
    padding: 24px;
}

.internet-speed-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.speed-pill {
       min-width: 137px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    border-radius: 999px;
    padding: 12px 6px 8px 11px;
    color: #0f172a;
    font-weight: 900;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.speed-pill .speed-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.58);
    font-size: 1.55rem;
}

.speed-pill .speed-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.82);
}

.speed-pill .speed-value {
    display: block;
    direction: ltr;
    font-size: 1.08rem;
}

.speed-pill.download {
    background: #22c18a;
}

.speed-pill.download .speed-icon {
    color: #047857;
}

.speed-pill.upload {
    background: #67bdf1;
}

.speed-pill.upload .speed-icon {
    color: #0c6fa8;
}

.speed-pill.ping {
    background: #ffb56b;
}

.speed-pill.ping .speed-icon {
    color: #b45309;
}

.soft-tag,
.office-tag,
.keyword-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 999px !important;
    border: 0 !important;
    background: #f1f3f7 !important;
    color: #111827 !important;
    padding: 9px 14px !important;
    font-size: 0.88rem;
    font-weight: 800;
}

.soft-tag i,
.office-tag i,
.keyword-chip i {
    color: #111827;
    font-size: 1rem;
}

.satisfaction-meter {
    margin-top: 16px;
}

.satisfaction-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e 0%, #f59e0b 52%, #ef4444 100%);
}

.satisfaction-handle {
    position: absolute;
    top: 50%;
    right: var(--value, 88%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
    transform: translate(50%, -50%);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.amenity-badge:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
    color: var(--brand);
}

/* ============================================
   ROOMS SECTION
   ============================================ */
.room-item {
    transition: var(--transition);
}

.room-item:hover {
    background: var(--gray-50);
}

.room-price .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
}

.room-price .currency {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
}

/* ============================================
   REVIEWS
   ============================================ */
.review-item {
    transition: var(--transition);
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: white;
}

.review-item:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.review-filter .input-group {
    border-radius: 44px;
    overflow: hidden;
}

.review-filter .form-control {
    border-radius: 999px !important;
    border: 1px solid var(--gray-200);
    padding: 0.8rem 1.25rem;
}

.review-filter .btn-brand {
    border-radius: 999px !important;
    padding: 0.75rem 1.5rem;
}

.suggested-keywords .keyword-chip {
    cursor: pointer;
    transition: var(--transition);
}

.suggested-keywords .keyword-chip:hover {
    background: var(--brand) !important;
    color: white !important;
    border-color: var(--brand) !important;
}

/* ============================================
   RATING INPUT (MODAL)
   ============================================ */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.rating-input .star-label {
    font-size: 2rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.2s;
}

.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label,
.rating-input input:checked ~ .star-label {
    color: #FBBF24;
    transform: scale(1.05);
}

/* ============================================
   MAP
   ============================================ */
#map {
    height: 300px;
    width: 100%;
    border-radius: 0 0 24px 24px;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* ============================================
   LIGHTGALLERY ICONS VIA REMIX ICON
   ============================================ */
.lg-icon,
.lg-next,
.lg-prev,
.lg-toolbar .lg-icon {
    font-family: "remixicon" !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.lg-next,
.lg-prev {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #fff !important;
    background: rgba(15, 23, 42, 0.58) !important;
    backdrop-filter: blur(10px);
}

.lg-next:before,
.lg-prev:before,
.lg-prev:after,
.lg-toolbar .lg-close:after,
.lg-toolbar .lg-download:after,
.lg-toolbar .lg-maximize:after {
    font-family: "remixicon" !important;
    font-weight: 400 !important;
}

.lg-next:before {
    content: "\ea6e" !important;
}

.lg-prev:before {
    content: "\ea64" !important;
}

.lg-prev:after {
    content: "" !important;
}

.lg-toolbar .lg-close:after {
    content: "\eb99" !important;
}

.lg-toolbar .lg-download:after {
    content: "\ec5a" !important;
}

.lg-toolbar .lg-maximize:after {
    content: "\ed9c" !important;
}

.lg-inline .lg-toolbar .lg-maximize:after,
.lg-inline .lg-maximize:after {
    content: "\ed9a" !important;
}

.lg-video-play-button .lg-video-play-icon {
    display: none;
}

.lg-video-play-button:before {
    content: "\f00b";
    font-family: "remixicon";
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* ============================================
   PROGRESS BARS (WORK FRIENDLY)
   ============================================ */
.progress {
    background-color: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.rating-bars .progress {
    height: 12px !important;
    border-radius: 999px;
}

.rating-bars .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #facc15) !important;
}

.rating-bars .d-flex:nth-child(n+4) .progress-bar {
    background: linear-gradient(90deg, #f59e0b, #ef4444) !important;
}

.review-score-card {
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 18px;
    background: #fff;
    text-align: center;
    height: 100%;
}

.review-score-card .score-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.progress-bar {
    transition: width 0.5s ease;
}

/* ============================================
   RATING BARS (REVIEW BREAKDOWN)
   ============================================ */
.rating-bars .progress {
    background-color: var(--gray-200);
    border-radius: 10px;
}

/* ============================================
   CALENDAR
   ============================================ */
#roomCalendar .border {
    transition: var(--transition);
}

#roomCalendar .border:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* ============================================
   PURPLE THEME (WORK FRIENDLY SECTION)
   ============================================ */
.bg-purple {
    background: var(--purple);
}

.border-purple {
    border-color: var(--purple) !important;
}

.text-purple {
    color: var(--purple);
}

.badge.bg-purple {
    background: var(--purple);
    color: white;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .hotel-card-premium .card-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hotel-card-premium .card-body {
        padding: 1rem;
    }
    
    .room-item .row {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn-outline-brand,
    .btn-brand {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .room-price .price {
        font-size: 1.1rem;
    }
    
    .review-item {
        padding: 0.75rem;
    }
    
    .rating-input .star-label {
        font-size: 1.5rem;
    }
    
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .hotel-card-premium .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rating-bars .d-flex {
        flex-wrap: wrap;
    }
    
    .suggested-keywords .keyword-chip {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .btn-outline-brand,
    .btn-brand,
    .sticky-sidebar,
    .wave-surf-indicator,
    .custom-nav,
    .breadcrumb-section,
    .btn-wishlist,
    .hotel-content .btn,
    .modal {
        display: none !important;
    }
    
    .hotel-card-premium {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .room-item {
        break-inside: avoid;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hotel-card-premium {
    animation: fadeIn 0.5s ease forwards;
}

.hotel-card-premium:nth-child(1) { animation-delay: 0s; }
.hotel-card-premium:nth-child(2) { animation-delay: 0.1s; }
.hotel-card-premium:nth-child(3) { animation-delay: 0.2s; }
.hotel-card-premium:nth-child(4) { animation-delay: 0.3s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-brand {
    color: var(--brand);
}

.bg-brand-light {
    background: var(--brand-light);
}

.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

.object-fit-cover {
    object-fit: cover;
}

.rounded-4 {
    border-radius: 24px !important;
}

.rounded-3 {
    border-radius: 24px !important;
}

/* ============================================
   PRICE DISPLAY
   ============================================ */
.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
}

.currency {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
}

/* ============================================
   CHARTS & SPEED METER
   ============================================ */
.internet-speed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.internet-speed-container canvas {
    max-width: 150px;
    height: auto;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 0.5rem 0.85rem;
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.pagination .page-item .page-link:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

/* ============================================
   TOOLTIPS & HELPERS
   ============================================ */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
}

[data-tooltip]:hover:before {
    opacity: 1;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}




/* ============================================
   ROOM CALENDAR STYLES
   ============================================ */
.calendar-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--brand-light);
    border-bottom: 1px solid var(--gray-200);
}

.calendar-weekday {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-dark);
    border-right: 1px solid var(--gray-200);
}

.calendar-weekday:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: white;
}

.calendar-day {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.calendar-day:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1;
}

.calendar-day.other-month {
    background: var(--gray-50);
    opacity: 0.6;
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--brand-light), white);
    border: 2px solid var(--brand);
}

.day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: inline-block;
    background: var(--gray-100);
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
}

.calendar-day.today .day-number {
    background: var(--brand);
    color: white;
}

.day-price {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand);
    margin: 6px 0;
    direction: ltr;
    text-align: center;
    background: var(--brand-light);
    padding: 2px 4px;
    border-radius: 8px;
}

.day-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.day-status-text {
    font-size: 0.65rem;
    color: var(--gray-600);
}

.status-available { background: #10b981; }
.status-limited { background: #f59e0b; }
.status-unavailable { background: #dc2626; }
.status-unregistered { background: #6c757d; }

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 768px) {
    .calendar-day {
        min-height: 70px;
        padding: 4px;
    }
    
    .day-number {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 0.7rem;
    }
    
    .day-price {
        font-size: 0.6rem;
    }
    
    .calendar-weekday {
        padding: 8px 4px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .calendar-day {
        min-height: 60px;
    }
    
    .day-price {
        display: none;
    }
    
    .calendar-wrapper {
        overflow-x: auto;
    }
    
    .calendar-weekdays,
    .calendar-days {
        min-width: 560px;
    }
}
