﻿/* ===== ACCOMMODATION DETAILS & BOOKING STYLES ===== */

/* Accommodation Gallery */
.accommodation-gallery img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accommodation-info {
    padding: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-info {
    background: rgba(0, 166, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue, #00A6FF);
}

.amenities .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Book Now Button */
.book-now-section {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.btn-lodgenda.btn-lg {
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 166, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-lodgenda.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 255, 0.4);
}

/* Category Cards */
.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-hover {
    transition: all 0.3s ease;
}

.category-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue, #00A6FF) !important;
}

.category-card .card-body {
    padding: 2rem 1.5rem;
}

.price-badge {
    background: rgba(0, 166, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.availability-info {
    margin-top: 0.5rem;
}

/* Room Cards */
.room-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.room-hover {
    transition: all 0.3s ease;
}

.room-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue, #00A6FF) !important;
}

.room-features {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.5rem;
}

/* Bed Selection */
.bed-legend {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bed-status-demo {
    width: 40px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.bed-status-demo.available {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.bed-status-demo.occupied {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.bed-status-demo.booked {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.bed-status-demo.reserved {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Beds Grid */
.beds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bed-item {
    aspect-ratio: 1.2;
    border: 3px solid;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

.bed-item.available {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.bed-item.occupied {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.bed-item.booked {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.bed-item.reserved {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.bed-item.clickable {
    cursor: pointer;
}

.bed-item.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.bed-number {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.bed-status-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bed-action {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Booking Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content.booking-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.success-icon {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.booking-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue, #00A6FF);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.countdown-timer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timer-number {
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.timer-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accommodation-info {
        margin-top: 1rem;
    }
    
    .beds-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .bed-item {
        aspect-ratio: 1;
    }
    
    .bed-number {
        font-size: 1rem;
    }
    
    .bed-status-text {
        font-size: 0.6rem;
    }
    
    .modal-content.booking-modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .timer-display {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .timer-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .beds-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .bed-number {
        font-size: 0.9rem;
    }
    
    .bed-status-text {
        font-size: 0.55rem;
    }
}

/* ===== NEW HERO SECTION STYLES ===== */
.hero-section {
    margin-bottom: 1rem;
}

.hero-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-location {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-meta {
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== QUICK ACTIONS BAR ===== */
.quick-actions-bar {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* ===== ENHANCED AMENITIES GRID ===== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.amenity-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.amenity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.amenity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.amenity-icon i {
    font-size: 1.25rem;
    color: white;
}

.amenity-content {
    flex: 1;
}

.amenity-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.amenity-desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: white;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 8px solid #f8f9fa;
}

.section-header {
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ===== PUBLIC PAGE STYLE ACCOMMODATION DETAILS ===== */
/* Using the same styles as the public page for consistency */

/* Placeholder images for gallery */
.placeholder-main-image,
.placeholder-gallery-image {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    transition: all 0.2s ease;
}

.placeholder-main-image:hover,
.placeholder-gallery-image:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Ensure photo gallery images have hover effects like public page */
.photo-gallery img {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.photo-gallery img:hover {
    transform: scale(1.02);
}

/* Sticky card positioning */
.sticky-top {
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* Ensure proper spacing for accommodation details section */
.accommodation-details {
    background: white;
}

/* Button styling to match public page */
.btn-success,
.btn-warning,
.btn-primary {
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-success:hover,
.btn-warning:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Card styling improvements */
.card.shadow-sm {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
}

.card.shadow-sm:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Rating stars styling */
.text-warning .fa-star,
.text-warning .fa-star-o {
    color: #ffc107 !important;
}

/* Badge styling */
.badge.bg-primary {
    background-color: #00A6FF !important;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

/* Contact info styling */
.border-top {
    border-top: 1px solid #dee2e6 !important;
}

/* Text styling improvements */
.text-muted {
    color: #6c757d !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
    .sticky-top {
        position: relative;
        top: auto;
    }

    .photo-gallery .col-lg-8,
    .photo-gallery .col-lg-4 {
        margin-bottom: 1rem;
    }

    .accommodation-details .col-lg-8,
    .accommodation-details .col-lg-4 {
        margin-bottom: 2rem;
    }
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== DESCRIPTION SECTION ===== */
.description-section {
    background: white;
    padding: 3rem 0;
}

.description-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.description-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.description-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007aff 0%, #5856d6 100%);
    border-radius: 2px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 1rem 0;
    }

    .main-image-container {
        height: 300px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .info-panel {
        height: auto;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .accommodation-title {
        font-size: 1.5rem;
    }

    .location-info {
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
        border-radius: 17.5px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.125rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .action-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .no-image-hero {
        height: 300px;
        border-radius: 12px;
    }

    .hero-icon-placeholder {
        font-size: 3rem;
    }

    .placeholder-title {
        font-size: 1.5rem;
    }

    .description-section {
        padding: 2rem 0;
    }

    .description-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .description-title {
        font-size: 1.25rem;
    }

    .description-text {
        font-size: 1rem;
    }

    .quick-actions-bar {
        top: 60px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .amenity-card {
        padding: 0.75rem;
    }

    .amenity-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }

    .amenity-icon i {
        font-size: 1.1rem;
    }

    .content-section {
        border-bottom: 6px solid #f8f9fa;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 250px;
    }

    .info-panel {
        padding: 1.25rem;
    }

    .quick-stats {
        gap: 0.75rem;
    }

    .action-buttons {
        gap: 0.5rem;
    }

    .no-image-hero {
        height: 250px;
    }

    .placeholder-location {
        flex-direction: column;
        gap: 0.25rem;
    }
}
