/* =========================================================
   GoThaiHotel.com - Shared "Tourist" theme (Tailwind-based)
   ใช้ร่วมกันในหลายหน้า: page-banner, search bar, card grid,
   badges, pagination, gallery, timeline
   ========================================================= */

/* --- 1. PAGE BANNER (hero เล็กสำหรับหน้ารายการ/รายละเอียด) --- */
.page-banner {
    position: relative; width: 100%; height: 420px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background-color: #1e293b;
}
.page-banner img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.75; z-index: 1;
    animation: slowPan 25s infinite alternate ease-in-out;
}
@keyframes slowPan { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
.banner-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to bottom, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.2) 60%, rgba(248,250,252,1) 100%);
}
.banner-text { position: relative; z-index: 10; text-align: center; width: 100%; max-width: 900px; padding: 0 20px; margin-top: -40px; }
.banner-title { font-size: 3.4rem; font-weight: 800; color: #ffffff; text-shadow: 0 4px 15px rgba(0,0,0,0.5); margin-bottom: 10px; }
.banner-subtitle { font-size: 1.15rem; font-weight: 300; color: #f8fafc; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* --- 2. SEARCH BAR (inline glass panel) --- */
.search-section { position: relative; margin-top: -60px; z-index: 20; padding: 0 20px; }
.search-glass-panel { max-width: 1500px; margin: 0 auto; background: rgba(255,255,255,0.95); backdrop-filter: blur(25px); border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); padding: 20px; border: 1px solid rgba(255,255,255,0.8); }

.modern-input { width: 100%; height: 50px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0 14px 0 45px; transition: all 0.3s; font-size: 0.95rem; color: #334155; appearance: none; font-family: inherit; }
.modern-input:focus { background: white; border-color: #2F6BA5; box-shadow: 0 0 0 4px rgba(47,107,165,0.1); outline: none; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1rem; pointer-events: none; z-index: 5; }

.search-btn-inline, .search-btn {
    height: 50px; background: linear-gradient(135deg, #2F6BA5, #1e40af); color: white; font-weight: bold; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(47,107,165,0.2); border: none; cursor: pointer; width: 100%; font-family: inherit;
}
.search-btn-inline:hover, .search-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(47,107,165,0.3); }

/* --- 3. CARD GRID (โรงแรม / เส้นทาง / บทความ) --- */
.card-grid { display: grid; grid-template-columns: repeat(1,1fr); gap: 30px; max-width: 1600px; margin: 40px auto; padding: 0 20px; position: relative; z-index: 10; }
@media(min-width:768px) { .card-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .card-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width:1300px) { .card-grid { grid-template-columns: repeat(4,1fr); } }

.item-card { background: rgba(255,255,255,0.9); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275); border: 1px solid rgba(255,255,255,0.6); display: flex; flex-direction: column; height: 100%; }
.item-card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0,0,0,0.1); background: rgba(255,255,255,1); }

.card-img-wrapper { position: relative; height: 230px; width: 100%; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.item-card:hover .card-img-wrapper img { transform: scale(1.12); }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, transparent 60%); }

.badge-cat { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.95); color: #C34480; font-size: 0.7rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.badge-award { position: absolute; top: 15px; right: 15px; background: linear-gradient(135deg, #fbbf24, #d97706); color: white; font-size: 0.7rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 5px; }

.card-content { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-location { font-size: 0.85rem; color: #64748b; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.card-price-tag { font-size: 0.9rem; font-weight: 700; color: #C34480; margin-bottom: 16px; }

.card-btn { margin-top: auto; width: 100%; background: #f8fafc; color: #2F6BA5; font-weight: 600; font-size: 0.9rem; padding: 12px; border-radius: 14px; text-align: center; transition: 0.3s; border: 1px solid #e2e8f0; display: block; }
.item-card:hover .card-btn { background: linear-gradient(135deg, #2F6BA5, #1e40af); color: white; border-color: transparent; }

/* --- 3.5 ROUTE CARDS (การ์ดเส้นทาง แบบ 4:3) --- */
.route-card.item-card { aspect-ratio: unset; }
.route-timeline { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #64748b; font-weight: 600; margin-bottom: 16px; }
.route-dot { width: 8px; height: 8px; border-radius: 50%; background: #2F6BA5; flex-shrink: 0; }
.route-dot-end { width: 8px; height: 8px; border-radius: 50%; background: #C34480; flex-shrink: 0; }
.route-line { flex: 1; height: 2px; background: #e2e8f0; }
.badge-days { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.95); color: #C34480; font-size: 0.7rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; }
.badge-type { position: absolute; top: 15px; right: 15px; background: rgba(15,23,42,0.75); color: white; font-size: 0.7rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; }

/* --- 3.6 ARTICLE CARDS --- */
.article-item { background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; display: flex; flex-direction: column; height: 100%; transition: 0.3s; cursor: pointer; }
.article-item:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.article-thumb { position: relative; height: 200px; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.article-item:hover .article-thumb img { transform: scale(1.08); }
.article-content { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.article-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-excerpt { font-size: 0.88rem; color: #64748b; line-height: 1.6; margin-bottom: 16px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.meta-info { display: flex; gap: 14px; font-size: 0.78rem; color: #94a3b8; }
.btn-read-more { color: #2F6BA5; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.btn-read-more:hover { text-decoration: underline; }

/* --- 4. PAGINATION --- */
.modern-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 50px 0; position: relative; z-index: 10; flex-wrap: wrap; }
.page-link { min-width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; border-radius: 14px; background: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,1); color: #475569; font-weight: 700; transition: all 0.3s; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.02); padding: 0 12px; text-decoration: none; }
.page-link:hover:not(.active):not(.disabled) { transform: translateY(-3px); color: #C34480; box-shadow: 0 8px 15px rgba(195,68,128,0.1); }
.page-link.active { background: linear-gradient(135deg, #C34480, #9d174d); color: white; border: none; box-shadow: 0 8px 20px rgba(195,68,128,0.3); }
.page-link.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.page-link.wide { width: auto; padding: 0 20px; }

/* --- 5. DETAIL PAGE: gallery, content-split, sidebar --- */
.detail-container { max-width: 1400px; margin: 40px auto 60px; padding: 0 24px; position: relative; z-index: 10; }
.breadcrumb { font-size: 0.9rem; color: #64748b; margin-bottom: 20px; }
.breadcrumb a { color: #2F6BA5; }
.breadcrumb a:hover { text-decoration: underline; }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; }
.title-wrapper h1 { font-size: 2.3rem; font-weight: 800; color: #1e293b; margin-bottom: 10px; line-height: 1.2; }
.meta-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta-tags span { font-size: 0.85rem; font-weight: 600; padding: 6px 14px; border-radius: 50px; display: inline-flex; align-items: center; gap: 6px; }
.tag-cat { background: #fdf2f8; color: #C34480; border: 1px solid #fbcfe8; }
.tag-loc { background: #e2e8f0; color: #475569; }

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
@media(min-width:768px) { .gallery-grid { grid-template-columns: 3.5fr 1.2fr; height: 500px; } }
.gallery-main { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 24px; min-height: 280px; }
.gallery-sub-grid { display: grid; grid-template-rows: repeat(3,1fr); gap: 12px; height: 100%; }
.gallery-sub { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; min-height: 90px; }
.gallery-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-main:hover img, .gallery-sub:hover img { transform: scale(1.05); }

.content-split { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media(min-width:1024px) { .content-split { grid-template-columns: 2fr 1fr; } }
.content-group { display: flex; flex-direction: column; gap: 25px; }
.box-card { background: white; border-radius: 24px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; }
.box-heading { font-size: 1.3rem; font-weight: 800; color: #1e293b; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.box-heading i { color: #C34480; }
.desc-text { color: #475569; line-height: 1.8; font-size: 1.03rem; }

.facilities-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.facility-badge { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px 18px; border-radius: 12px; color: #475569; font-weight: 600; font-size: 0.92rem; }
.facility-badge i { color: #2F6BA5; }

.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; align-self: start; }
.info-widget { background: white; border-radius: 24px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed #e2e8f0; }
.info-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.info-item i { font-size: 1.3rem; color: #C34480; margin-top: 2px; width: 26px; text-align: center; }
.info-detail h5 { font-size: 0.8rem; color: #64748b; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.info-detail p { font-size: 1rem; color: #1e293b; font-weight: 700; line-height: 1.4; }

.btn-primary-action { width: 100%; margin-top: 10px; background: linear-gradient(135deg, #2F6BA5, #1e40af); color: white; padding: 15px; border-radius: 16px; font-weight: 700; font-size: 1rem; text-align: center; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(47,107,165,0.2); display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary-action:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(47,107,165,0.3); }

.related-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid #e2e8f0; }

/* --- 6. ROUTE DETAIL TIMELINE --- */
.day-header { background: #f8fafc; padding: 15px 25px; border-radius: 16px; border-left: 6px solid #2F6BA5; margin-bottom: 30px; margin-top: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.day-header:first-child { margin-top: 0; }
.day-title { font-size: 1.4rem; font-weight: 800; color: #1e293b; }

.timeline-container { position: relative; padding-left: 30px; margin-bottom: 20px; }
.timeline-container::before { content: ''; position: absolute; top: 0; bottom: 0; left: 9px; width: 2px; background: #e2e8f0; }
.timeline-item { position: relative; margin-bottom: 35px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -30px; top: 5px; width: 20px; height: 20px; background: white; border: 4px solid #C34480; border-radius: 50%; box-shadow: 0 0 0 4px rgba(195,68,128,0.1); z-index: 2; }
.timeline-time { font-size: 0.85rem; font-weight: 700; color: #C34480; margin-bottom: 5px; display: inline-block; background: #fdf2f8; padding: 4px 12px; border-radius: 8px; }
.timeline-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; margin-top: 10px; }
.timeline-card:hover { border-color: #cbd5e1; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transform: translateY(-3px); }
@media(min-width:768px) { .timeline-card { flex-direction: row; } }
.timeline-img { width: 100%; height: 200px; object-fit: cover; }
@media(min-width:768px) { .timeline-img { width: 260px; height: auto; flex-shrink: 0; } }
.timeline-info { padding: 22px; flex-grow: 1; }
.timeline-title { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.timeline-desc { color: #64748b; font-size: 0.92rem; line-height: 1.6; margin-bottom: 12px; }
.timeline-action { color: #2F6BA5; font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 5px; }

/* --- Background floating mist effect (ใช้ในหน้ารายการ) --- */
.travel-bg-fx { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; background: linear-gradient(180deg,#f8fafc 0%,#e0f2fe 100%); pointer-events: none; }
.travel-bg-fx::before, .travel-bg-fx::after { content: ''; position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.6; animation: floatMist 30s infinite alternate ease-in-out; }
.travel-bg-fx::before { width: 800px; height: 600px; background: #bae6fd; top: -10%; left: -20%; }
.travel-bg-fx::after { width: 900px; height: 700px; background: #fdf2f8; bottom: -20%; right: -10%; animation-delay: -10s; animation-direction: alternate-reverse; }
@keyframes floatMist { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(10%,15%) scale(1.2); } 100% { transform: translate(-10%,-5%) scale(0.9); } }
