/* File: /home/users/hotels/public_html/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

header p {
    font-size: 16px;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.search-box, .hotel-card, .hotel-details-card, .booking-summary, .booking-form, .confirmation-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

button, .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    text-align: center;
}

button:hover, .btn:hover {
    background: #5568d3;
}

.btn-primary {
    background: #667eea;
    width: 100%;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

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

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

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.hotel-card {
    transition: transform 0.3s;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hotel-image, .hotel-main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.hotel-main-image {
    height: 400px;
}

.hotel-info h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 20px;
}

.hotel-rating {
    margin: 10px 0;
    font-size: 18px;
}

.hotel-location {
    color: #666;
    margin: 10px 0;
}

.hotel-description {
    color: #555;
    margin: 15px 0;
    line-height: 1.6;
}

.room-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
}

.hotel-price {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.price-details {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-main {
    font-size: 32px;
    font-weight: bold;
    color: #28a745;
}

.price-per-night {
    color: #666;
}

.price-note {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.hotel-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.hotel-actions .btn {
    flex: 1;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.price-large {
    font-size: 48px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.booking-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.booking-actions .btn {
    flex: 1;
}

.confirmation-card {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.booking-reference {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.reference-number {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 2px;
}

.booking-details, .customer-info, .next-steps {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.next-steps ul {
    list-style-position: inside;
    margin-left: 0;
}

.next-steps li {
    margin: 10px 0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.action-buttons .btn {
    flex: 0 1 auto;
}
