/* ============================================
   KT Hotels — Main Stylesheet
   ============================================ */

.kth-wrap {
    background: #1a5fa8;
    border-radius: 12px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #fff;
    max-width: 100%;
}

/* Rows */
.kth-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.kth-row--main { margin-bottom: 8px; }

/* Fields */
.kth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
    position: relative;
}

.kth-field label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kth-field--destination { flex: 2; }
.kth-field--submit { flex: 0 0 auto; min-width: auto; }

/* Input wrap */
.kth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.kth-icon {
    position: absolute;
    left: 10px;
    font-size: 14px;
    pointer-events: none;
}

.kth-input-wrap input[type="text"],
.kth-input-wrap input[type="date"] {
    width: 100%;
    padding: 10px 10px 10px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    height: 42px;
}

.kth-field select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    height: 42px;
    cursor: pointer;
}

/* Search button */
.kth-btn-search {
    background: #f0a500;
    color: #fff;
    border: none;
    padding: 0 28px;
    height: 42px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.kth-btn-search:hover { background: #d4920a; }

/* Suggest dropdown */
.kth-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.kth-suggest-item {
    padding: 10px 14px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kth-suggest-item:hover { background: #f5f8ff; }

.kth-suggest-item .kth-suggest-type {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Loading */
.kth-loading {
    text-align: center;
    padding: 32px;
    color: #333;
}

.kth-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #1a5fa8;
    border-radius: 50%;
    animation: kth-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* Error */
.kth-error {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 12px;
    color: #c62828;
    font-size: 14px;
}

/* Results */
.kth-results {
    margin-top: 16px;
}

.kth-results-header {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.kth-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kth-hotel-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    gap: 16px;
}

.kth-hotel-info { flex: 1; }

.kth-hotel-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.kth-hotel-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.kth-hotel-stars { color: #f0a500; }

.kth-hotel-meal {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.kth-hotel-price {
    text-align: right;
    flex-shrink: 0;
}

.kth-hotel-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #1a5fa8;
}

.kth-hotel-price-label {
    font-size: 12px;
    color: #888;
}

.kth-hotel-btn {
    background: #1a5fa8;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    width: 100%;
}

.kth-hotel-btn:hover { background: #154d8a; }

/* Responsive */
@media (max-width: 768px) {
    .kth-row { flex-direction: column; }
    .kth-field { min-width: 100%; }
    .kth-hotel-card { flex-direction: column; align-items: flex-start; }
    .kth-hotel-price { text-align: left; }
}
