/* Public Booking System Styles (v607) */

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 28px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 12px;
}

.benefits {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Room Listings Page */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.room-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
}

.room-info {
    padding: 20px;
}

.room-name {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.room-capacity {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
}

.room-capacity i {
    margin-right: 6px;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.amenity-tag {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #495057;
}

.room-pricing {
    margin-bottom: 15px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
}

.price-period {
    font-size: 14px;
    color: #6c757d;
    margin-left: 5px;
}

.price-unavailable {
    color: #dc3545;
    font-size: 14px;
}

.room-availability {
    margin-bottom: 15px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

.availability-badge.available {
    background: #d4edda;
    color: #155724;
}

.availability-badge.next-available {
    background: #fff3cd;
    color: #856404;
}

.availability-badge.unavailable {
    background: #f8d7da;
    color: #721c24;
}

.room-actions {
    margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
}

/* Room Detail Page */
.room-detail-header {
    margin-bottom: 30px;
}

.room-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.room-main-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.placeholder-main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    margin-bottom: 30px;
}

.room-description {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.room-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.room-amenities-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.amenities-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.amenities-list li {
    padding: 8px 0;
}

.amenities-list li i {
    color: #28a745;
    margin-right: 8px;
}

.availability-calendar-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    margin: 0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-nav-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-1px);
}

.calendar-nav-btn:disabled {
    background: #ced4da;
    cursor: not-allowed;
    opacity: 0.6;
}

.current-month {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 150px;
    text-align: center;
}

.calendar-legend {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.legend-available,
.legend-booked {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-available i {
    color: #28a745;
}

.legend-booked i {
    color: #dc3545;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day.available {
    background: #d4edda;
    color: #155724;
}

.calendar-day.available:hover {
    background: #c3e6cb;
}

.calendar-day.booked {
    background: #f8d7da;
    color: #721c24;
}

.day-date {
    font-size: 16px;
    font-weight: bold;
}

.day-month {
    font-size: 10px;
    opacity: 0.8;
}

/* Sidebar */
.room-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.booking-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.pricing-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.price-display {
    margin-bottom: 10px;
}

.compliance-info {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

.booking-features ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.booking-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #495057;
}

.booking-features li i {
    color: #667eea;
    margin-right: 8px;
    width: 20px;
}

.location-info {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.location-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.location-info ul {
    list-style: none;
    padding: 0;
}

.location-info li {
    padding: 6px 0;
    font-size: 14px;
}

.location-info li i {
    color: #dc3545;
    margin-right: 8px;
}

/* Booking Form */
.booking-form-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.booking-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

.booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    font-weight: bold;
    font-size: 18px;
    color: #667eea;
    border-top: 2px solid #667eea;
    margin-top: 10px;
    padding-top: 15px;
}

.cancellation-policy {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.cancellation-policy h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #856404;
}

.cancellation-policy p {
    font-size: 14px;
    color: #856404;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.availability-sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 15px;
}

.mini-calendar-day {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.mini-calendar-day.available {
    background: #d4edda;
    color: #155724;
}

.mini-calendar-day.booked {
    background: #f8d7da;
    color: #721c24;
}

/* Payment Page */
.payment-page {
    max-width: 900px;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.booking-reference {
    font-size: 14px;
    color: #6c757d;
    margin-top: 10px;
}

.payment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.booking-summary-card,
.payment-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #667eea;
}

.pricing-section .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.payment-notice {
    background: #d1ecf1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.payment-notice i {
    color: #0c5460;
    font-size: 20px;
}

.payment-notice p {
    margin: 0;
    font-size: 14px;
    color: #0c5460;
}

.paypal-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.paypal-placeholder i {
    font-size: 48px;
    color: #0070ba;
    margin-bottom: 15px;
}

.secure-payment-badge {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.secure-payment-badge i {
    color: #28a745;
    margin-right: 6px;
}

.secure-payment-badge p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

.cancellation-policy-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Confirmation Page */
.confirmation-page {
    max-width: 800px;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon,
.pending-icon,
.cancelled-icon,
.info-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-icon {
    color: #28a745;
}

.pending-icon {
    color: #ffc107;
}

.cancelled-icon {
    color: #dc3545;
}

.info-icon {
    color: #17a2b8;
}

.status-message {
    font-size: 18px;
    color: #6c757d;
    margin-top: 15px;
}

.confirmation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.booking-details-card,
.next-steps-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.details-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.details-section:last-child {
    border-bottom: none;
}

.details-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #667eea;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-label {
    color: #6c757d;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.pin-section {
    background: #d4edda;
    padding: 20px;
    border-radius: 8px;
}

.pin-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #155724;
}

.pin-display {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pin-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.pin-item:last-child {
    margin-bottom: 0;
}

.pin-label {
    color: #6c757d;
}

.pin-value {
    font-weight: bold;
    font-size: 20px;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.pin-instructions {
    font-size: 14px;
    color: #155724;
    margin: 0;
}

.step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.step i {
    font-size: 24px;
    color: #667eea;
}

.step-content h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #333;
}

.step-content p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.contact-support {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.contact-support a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.confirmation-actions {
    text-align: center;
}

/* Booking Info Section */
.booking-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.booking-info h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
}

.benefit-item i {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 15px;
}

.benefit-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.benefit-item p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* No Rooms Message */
.no-rooms {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-rooms p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 10px;
}

.no-rooms a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        margin-top: 30px;
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 16px;
    }

    .benefits {
        font-size: 14px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .room-detail-content,
    .booking-form-content,
    .payment-content,
    .confirmation-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .calendar-container {
        grid-template-columns: repeat(7, 1fr);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }

    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .current-month {
        font-size: 14px;
        min-width: 120px;
    }
}

/* Tablet view */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-header h1 {
        font-size: 24px;
    }
}
