/**
 * Blue Lantern Booking - Public Styles
 * Diseño moderno estilo Airbnb/Booking.com
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d5f52;
    --primary-dark: #1a3a31;
    --accent: #b8976b;
    --text: #222;
    --text-light: #717171;
    --border: #dddddd;
    --bg: #f7f7f7;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 6px 16px rgba(0,0,0,0.12);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* ===== SEARCH HERO ===== */
.blb-search-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.blb-search-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.blb-search-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blb-search-title {
    font-size: 48px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.blb-search-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 48px;
    font-weight: 300;
}

.blb-search-form {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.blb-search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.blb-search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blb-date-input,
.blb-select-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.blb-date-input:focus,
.blb-select-input:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
}

.blb-search-btn {
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blb-search-btn:hover {
    background: #a17f5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184,151,107,0.4);
}

.blb-search-btn:active {
    transform: translateY(0);
}

/* ===== RESULTS ===== */
.blb-search-results {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.blb-results-header {
    margin-bottom: 32px;
}

.blb-results-header h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.blb-results-info {
    font-size: 16px;
    color: var(--text-light);
}

.blb-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.blb-result-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.blb-result-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border);
}

.blb-result-image {
    position: relative;
    height: 260px;
    background: var(--bg);
    overflow: hidden;
}

.blb-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blb-result-card:hover .blb-result-image img {
    transform: scale(1.05);
}

.blb-result-gallery-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.blb-result-content {
    padding: 20px;
}

.blb-result-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.blb-result-features {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.blb-result-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.blb-amenity-tag {
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.blb-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.blb-price-total {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.blb-price-detail {
    font-size: 13px;
    color: var(--text-light);
}

.blb-result-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.blb-result-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===== SINGLE ROOM ===== */
.blb-single-room {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.blb-room-gallery-section {
    margin-bottom: 48px;
}

.blb-gallery-main {
    width: 100%;
    height: 560px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.blb-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blb-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.blb-gallery-thumb {
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    opacity: 0.7;
}

.blb-gallery-thumb:hover,
.blb-gallery-thumb.active {
    border-color: var(--text);
    opacity: 1;
    transform: scale(1.02);
}

.blb-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blb-room-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-top: 48px;
}

.blb-room-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.blb-room-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    color: var(--text-light);
}

.blb-room-description h2,
.blb-room-amenities h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.blb-room-description {
    margin-bottom: 48px;
}

.blb-room-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.blb-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.blb-amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text);
}

.blb-check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== BOOKING SIDEBAR ===== */
.blb-room-sidebar {
    position: sticky;
    top: 24px;
}

.blb-booking-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.blb-booking-price {
    text-align: left;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.blb-price-amount {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
}

.blb-price-label {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 4px;
}

.blb-form-group {
    margin-bottom: 16px;
}

.blb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

.blb-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
}

.blb-form-input:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
}

.blb-booking-summary {
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.blb-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-light);
}

.blb-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.blb-booking-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.blb-booking-btn:hover {
    background: #a17f5a;
    transform: translateY(-1px);
}

/* ===== CHECKOUT ===== */
.blb-checkout-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.blb-checkout-header {
    text-align: center;
    margin-bottom: 48px;
}

.blb-checkout-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.blb-checkout-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
}

.blb-checkout-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.blb-checkout-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
}

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

.blb-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.blb-form-textarea:focus {
    outline: none;
    border-color: var(--text);
}

.blb-checkout-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blb-checkout-submit-btn:hover {
    background: #a17f5a;
    transform: translateY(-1px);
}

.blb-summary-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 24px;
}

.blb-summary-room {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.blb-summary-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

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

/* ===== LOADING ===== */
.blb-loading {
    text-align: center;
    padding: 80px 20px;
}

.blb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blb-room-content-wrapper,
    .blb-checkout-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .blb-search-title {
        font-size: 36px;
    }
    
    .blb-search-fields {
        grid-template-columns: 1fr;
    }
    
    .blb-results-grid {
        grid-template-columns: 1fr;
    }
    
    .blb-gallery-main {
        height: 300px;
    }
    
    .blb-room-title {
        font-size: 24px;
    }
    
    .blb-form-row {
        grid-template-columns: 1fr;
    }
    
    .blb-amenities-grid {
        grid-template-columns: 1fr;
    }
}
