/**
 * fp-hotels.css
 * Part of SouthKorea theme — extracted from fp-hotels.php
 * @package SouthKorea
 */

/* ── Affiliate Hotels — overrides & additions ───────────────── */

/* FIX #4: Book button — màu cam để tách biệt khỏi cyan decoration */
.sk-hotel-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 16px;
    background: #ff7c2a;
    color: #fff !important;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
    .sk-hotel-btn { transition: background .2s, transform .15s; }
    .sk-hotel-btn:hover { background: #e86520; transform: translateY(-1px); }
    .sk-hotel-btn:active { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .sk-hotel-btn:hover { background: #e86520; }
}

/* Strikethrough original price */
.sk-hotel-price-orig {
    font-size: 13px;
    color: rgba(255,255,255,.35);
    text-decoration: line-through;
    font-weight: 400;
    align-self: flex-end;
    margin-bottom: 2px;
}

/* Badges */
.affiliate-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sk-hotel-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
}
.sk-hotel-badge--bestseller,
.sk-hotel-badge:not([class*='--']) {
    background: rgba(255, 124, 42, .15);
    color: #ff7c2a;
    border: 1px solid rgba(255,124,42,.3);
}
.sk-hotel-badge--limited {
    background: rgba(255, 70, 70, .12);
    color: #ff5f5f;
    border: 1px solid rgba(255,70,70,.3);
}
.sk-hotel-badge--view {
    background: rgba(0, 200, 255, .1);
    color: #00c8ff;
    border: 1px solid rgba(0,200,255,.25);
}

/* ── STAY22 MAP BLOCK ─────────────────────────────────────── */

.sk-stay22-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.sk-stay22-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    color: var(--text1, #fff);
    line-height: 1.2;
    margin: 0 0 6px;
    font-family: 'DM Sans', sans-serif;
}
.sk-stay22-title em {
    font-style: normal;
    color: #ff7c2a;
}
.sk-stay22-subtitle {
    font-size: 13px;
    color: var(--text2, rgba(255,255,255,.5));
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
}

/* Date picker row */
.sk-stay22-date-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.sk-date-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text2, rgba(255,255,255,.45));
    white-space: nowrap;
}
.sk-date-input {
    background: rgba(255,255,255,.06);
    border: .5px solid rgba(255,255,255,.12);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    padding: 7px 12px;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    /* Native date picker color in Chromium */
    color-scheme: dark;
}
.sk-date-input:focus,
.sk-date-input:hover {
    border-color: rgba(255,124,42,.5);
}
.sk-date-sep {
    font-size: 14px;
    color: var(--text2, rgba(255,255,255,.3));
}

/* City dropdown */
.sk-stay22-city-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.sk-city-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,.06);
    border: .5px solid rgba(255,124,42,.35);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color .2s;
}
.sk-city-select-wrap:focus-within {
    border-color: rgba(255,124,42,.7);
    box-shadow: 0 0 0 2px rgba(255,124,42,.15);
}
.sk-city-icon {
    padding: 0 10px 0 12px;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}
.sk-city-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    padding: 10px 36px 10px 4px;
    cursor: pointer;
    min-width: 200px;
    color-scheme: dark;
}
.sk-city-select option,
.sk-city-select optgroup {
    background: #1a1a2e;
    color: #fff;
    font-weight: 400;
}
.sk-city-select optgroup {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,124,42,.8);
}
.sk-city-chevron {
    position: absolute;
    right: 12px;
    color: #ff7c2a;
    font-size: 12px;
    pointer-events: none;
}
.sk-city-hint {
    font-size: 12px;
    color: var(--text2, rgba(255,255,255,.35));
    margin: 0;
    line-height: 1.5;
}

/* Map wrapper + loading overlay */
.sk-stay22-map-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: .5px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
}
.sk-stay22-map-wrap iframe {
    display: block;
    border-radius: 10px;
}

.sk-stay22-map-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    border-radius: 10px;
    z-index: 2;
}
.sk-stay22-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
}
.sk-stay22-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,124,42,.2);
    border-top-color: #ff7c2a;
    border-radius: 50%;
    animation: sk-spin .7s linear infinite;
}
@keyframes sk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .sk-stay22-spinner { animation: none; border-top-color: #ff7c2a; }
}

.sk-stay22-map-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text2, rgba(255,255,255,.35));
    line-height: 1.6;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .affiliate-section { padding: 60px 24px !important; }
    .affiliate-grid { grid-template-columns: 1fr !important; }
    .sk-stay22-header { flex-direction: column; align-items: flex-start; }
    .sk-stay22-map-wrap iframe { height: 460px; }
}
@media (max-width: 640px) {
    .affiliate-section { padding: 48px 16px !important; }
    .sk-stay22-map-wrap iframe { height: 400px; }
    .sk-date-label { display: none; } /* compact trên mobile */
}