/* Elegant Guesthouse Booking - Enhanced Bed-Based System Styles v4.0 */

/* =====================================
   TEMEL REZERVASYON FORMU STİLLERİ
===================================== */

.reservation-container {
    max-width: 500px;
    margin: 24px auto;
    padding: 24px;
    background: #fdfdfd;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
}

.reservation-container h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
    color: #345;
}

.reservation-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-col {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.reservation-form label,
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #456;
}

.reservation-form input,
.reservation-form select,
.form-group input,
.form-group select {
    font-weight: bold;
    display: block;
    width: 100%;
    color: #234;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.reservation-form input:focus,
.reservation-form select:focus {
    outline: none;
    border-color: #c8AD90;
    box-shadow: 0 0 0 2px rgba(200, 173, 144, 0.2);
}

.search-btn,
.reservation-form button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    width: 100%;
    background-color: #c8AD90;
    color: #4a2c2a;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover,
.reservation-form button:hover {
    background-color: #b5976f;
}

/* Kişi seçimi için özel stiller */
.person-limit-info {
    margin-top: 8px;
    color: #666;
    font-style: italic;
}

.person-limit-info small {
    display: block;
    line-height: 1.4;
}

/* Başarı Mesajları */
.booking-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* =====================================
   YATAK BAZLI ODA LİSTESİ STİLLERİ
===================================== */

.egb-rooms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    overflow-y: auto;
}

.egb-search-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.egb-search-info h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.egb-search-info p {
    color: #34495e;
    font-size: 16px;
}

.no-rooms-message {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border-radius: 10px;
    border: 1px solid #ffeaa7;
}

.no-rooms-message p {
    color: #856404;
    font-size: 18px;
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c8AD90;
    color: #4a2c2a;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #b5976f;
}

/* Yatak Dağılımı Bilgi Paneli */
.bed-allocation-info {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

.bed-allocation-info h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 18px;
}

.allocation-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.room-allocation-item {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #27ae60;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Oda Kartları */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.room-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.room-card.selected-room {
    border: 3px solid #27ae60 !important;
    background: #f8fff8 !important;
    transform: translateY(-3px);
}

.room-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c8AD90, #b5976f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* Yatak Dağılımı Badge */
.bed-allocation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bed-availability-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,255,255,0.9);
    padding: 5px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.bed-availability-indicator.available {
    color: #27ae60;
}

.bed-availability-indicator.partial {
    color: #f39c12;
}

.bed-availability-indicator.full {
    color: #e74c3c;
}

.room-info {
    padding: 20px;
}

.room-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 22px;
}

.room-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.room-capacity,
.room-price,
.room-nights,
.bed-info {
    margin-bottom: 8px;
    color: #34495e;
}

.bed-info {
    background: #ecf0f1;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.price-inquiry {
    font-size: 16px;
    font-weight: bold;
    color: #c8AD90;
    margin-bottom: 15px;
    font-style: italic;
}

.room-booking {
    padding: 0 20px 20px;
}

.book-room-btn {
    width: 100%;
    padding: 12px;
    background-color: #c8AD90;
    color: #4a2c2a;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-room-btn:hover {
    background-color: #b5976f;
}

/* Toplam Rezervasyon Fiyatı */
.total-booking-price {
    text-align: center;
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #27ae60;
}

.total-booking-price h3 {
    color: #27ae60;
    margin: 0;
    font-size: 24px;
}

.booking-action {
    text-align: center;
    margin: 30px 0;
}

.book-rooms-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.book-rooms-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* =====================================
   MODAL STİLLERİ
===================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10001;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    padding-right: 30px;
}

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

.booking-summary h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.booking-summary p {
    margin: 8px 0;
    color: #34495e;
}

/* Çoklu Oda Özeti */
.room-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.room-price {
    color: #27ae60;
    font-weight: bold;
}

.company-info h4,
.guests-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 25px;
    border-bottom: 2px solid #c8AD90;
    padding-bottom: 5px;
}

.guest-row {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #c8AD90;
}

.guest-row h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    margin-top: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cancel-btn,
.confirm-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-btn {
    background-color: #95a5a6;
    color: white;
}

.cancel-btn:hover {
    background-color: #7f8c8d;
}

.confirm-btn {
    background-color: #27ae60;
    color: white;
}

.confirm-btn:hover {
    background-color: #219a52;
}

/* =====================================
   ADMİN PANELİ STİLLERİ
===================================== */

.egb-admin-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.egb-admin-section h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 2px solid #c8AD90;
    padding-bottom: 10px;
}

.egb-filters {
    margin-bottom: 20px;
}

.egb-filters .button {
    margin-right: 10px;
}

.egb-status-badge {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.egb-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.egb-status-approved {
    background-color: #d1ecf1;
    color: #0c5460;
}

.egb-status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.egb-status-invoiced {
    background-color: #e2e3e5;
    color: #383d41;
}

.egb-status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Grup Rezervasyon Kartları */
.group-booking-card {
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.group-header h3 {
    margin: 0;
    color: #007cba;
}

.group-status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}

.group-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.group-details p {
    margin: 5px 0;
}

.group-rooms ul {
    list-style: none;
    padding: 0;
}

.group-rooms li {
    padding: 8px;
    background: white;
    margin-bottom: 5px;
    border-radius: 4px;
    border-left: 4px solid #007cba;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-actions {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.group-info-banner {
    background: #e7f3ff;
    border: 1px solid #007cba;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.group-info-banner p {
    margin: 5px 0;
}

/* =====================================
   WİDGET STİLLERİ
===================================== */

.widget .egb-booking-widget {
    padding: 15px;
}

.widget .reservation-container {
    max-width: 100%;
    margin: 0;
    padding: 15px;
    box-shadow: none;
    border: 1px solid #ddd;
}

/* =====================================
   YATAK MÜSAİTLİK STİLLERİ
===================================== */

.egb-availability-check {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    margin: 20px 0;
}

.egb-availability-check h3 {
    color: #007cba;
    margin-top: 0;
}

.egb-availability-check ul {
    margin: 10px 0;
    padding-left: 20px;
}

.egb-availability-check li {
    margin: 5px 0;
}

/* =====================================
   ANIMASYONLAR
===================================== */

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.room-card {
    animation: fadeIn 0.6s ease-out;
}

.modal-content {
    animation: fadeIn 0.3s ease-out;
}

.bed-allocation-badge {
    animation: pulse 2s infinite;
}

.group-booking-card {
    animation: slideIn 0.4s ease-out;
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */

@media (max-width: 768px) {
    .egb-rooms-container {
        padding: 15px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
        max-height: 85vh;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .confirm-btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .reservation-container {
        margin: 15px;
        padding: 20px;
    }
    
    .allocation-display {
        flex-direction: column;
    }
    
    .room-allocation-item {
        text-align: center;
    }
    
    .group-details {
        grid-template-columns: 1fr;
    }
    
    .group-rooms li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bed-allocation-info {
        padding: 15px;
    }
    
    .total-booking-price {
        padding: 15px;
    }
    
    .total-booking-price h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 15px;
    }
    
    .modal-content h2 {
        font-size: 18px;
        padding-right: 25px;
    }
    
    .booking-summary {
        padding: 15px;
    }
    
    .guest-row {
        padding: 10px;
    }
    
    .room-card {
        margin-bottom: 15px;
    }
    
    .bed-allocation-info h3 {
        font-size: 16px;
    }
    
    .book-rooms-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* =====================================
   ÖZEL SCROLLBAR STİLLERİ
===================================== */

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c8AD90;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #b5976f;
}

/* Ana sayfa scroll düzeltmesi */
body.modal-open {
    overflow: hidden;
}

/* =====================================
   TOOLTIP STİLLERİ
===================================== */

.egb-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.egb-tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.egb-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* =====================================
   LOADING ANIMATION
===================================== */

.egb-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #c8AD90;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================
   PRINT STİLLERİ
===================================== */

@media print {
    .modal, .egb-admin-section, .form-actions {
        display: none !important;
    }
    
    .booking-summary {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .room-card {
        border: 1px solid #000;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* =====================================
   DARK MODE DESTEĞI (İSTEĞE BAĞLI)
===================================== */

@media (prefers-color-scheme: dark) {
    .reservation-container {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .modal-content {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .booking-summary {
        background: #2c3e50;
    }
    
    .form-group input,
    .form-group select {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5f7a;
    }
}