/* ===== SHARED ADDITIONS FOR ALL NEW PAGES ===== */

/* --- Page Hero (inner pages) --- */
.page-hero {
    padding: 130px 0 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #111 100%);
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,225,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .breadcrumb { color: #888; font-size: 0.8rem; margin-bottom: 12px; }
.page-hero .breadcrumb a { color: var(--primary-color); }
.page-hero-title {
    font-size: 3rem; font-weight: 900; color: #fff;
    margin-bottom: 16px; line-height: 1.15;
}
.page-hero-title span { color: var(--primary-color); }
.page-hero-sub { color: #aaa; font-size: 1.05rem; max-width: 600px; }

/* --- Legal pages --- */
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 70px 0 100px; }
.legal-wrap h2 { font-size: 1.6rem; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }
.legal-wrap h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--primary-color); }
.legal-wrap p, .legal-wrap li { font-size: 0.92rem; line-height: 1.9; color: #444; margin-bottom: 10px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 1.5rem; margin-bottom: 16px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-updated { display: inline-block; background: #f5f5f5; border-left: 3px solid var(--primary-color); padding: 8px 16px; font-size: 0.82rem; color: #666; margin-bottom: 32px; border-radius: 0 4px 4px 0; }
.legal-toc { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 24px 28px; margin-bottom: 40px; }
.legal-toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; margin-bottom: 12px; }
.legal-toc ol { padding-left: 1.2rem; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--secondary-color); font-size: 0.88rem; font-weight: 700; }
.legal-toc a:hover { color: var(--primary-dark); }

/* --- Search page --- */
.search-hero { padding: 120px 0 50px; background: #0a0a0a; }
.search-box-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-top: 30px;
}
.search-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: end; }
.search-field label { display: block; font-size: 0.75rem; font-weight: 700; color: #888; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.search-field input, .search-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Noto Sans JP', sans-serif;
    outline: none;
    transition: 0.2s;
    background: #fff;
}
.search-field input:focus, .search-field select:focus { border-color: var(--primary-color); }
.btn-search { padding: 14px 32px; font-size: 1rem; border-radius: 8px; white-space: nowrap; }

.results-header { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 20px; }
.results-count { font-size: 0.9rem; color: #666; }
.results-count strong { color: var(--secondary-color); font-size: 1.1rem; }
.sort-select { padding: 8px 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.85rem; font-family: 'Noto Sans JP', sans-serif; }

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

/* Tour card enhanced */
.tour-card-h {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}
.tour-card-h:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.tour-card-h .th-img { width: 160px; flex-shrink: 0; object-fit: cover; }
.tour-card-h .th-body { padding: 20px; flex: 1; }
.tour-card-h .th-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.tour-card-h .th-meta { display: flex; gap: 12px; font-size: 0.75rem; color: #888; margin-bottom: 12px; }
.tour-card-h .th-price { font-size: 1.2rem; font-weight: 900; color: var(--secondary-color); }
.tour-card-h .th-price span { font-size: 0.75rem; font-weight: 400; color: #888; }

/* Filter sidebar */
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-top: 40px; }
.filter-sidebar { background: #fff; border-radius: 12px; padding: 24px; height: fit-content; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.filter-sidebar h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #888; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.filter-group { margin-bottom: 24px; }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.filter-check input { accent-color: var(--primary-color); width: 16px; height: 16px; }
.filter-check span { font-size: 0.88rem; }
.filter-range { width: 100%; accent-color: var(--primary-color); }
.price-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: #888; margin-top: 6px; }

/* --- Tour Detail page --- */
.tour-detail-hero {
    height: 480px; position: relative; margin-top: 70px;
    background: #222 url('https://placehold.co/1400x480/1a1a1a/ffe100?text=Tour+Image') no-repeat center/cover;
}
.tour-detail-hero .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); }
.tour-detail-hero .hero-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; color: #fff; }
.tour-detail-hero .category-tag { margin-bottom: 12px; display: inline-block; }
.tour-detail-hero h1 { font-size: 2.5rem; font-weight: 900; line-height: 1.2; max-width: 700px; }
.tour-detail-hero .hero-meta { display: flex; gap: 24px; margin-top: 16px; font-size: 0.9rem; opacity: 0.9; }
.tour-detail-hero .hero-meta i { color: var(--primary-color); margin-right: 6px; }

.tour-detail-body { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 60px 0; }
.tour-content-main { }
.tour-content-main h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }
.tour-content-main p { font-size: 0.95rem; line-height: 1.9; color: #444; margin-bottom: 16px; }
.tour-highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.tour-highlight-item { background: #fff9e0; border: 1px solid #ffe100; border-radius: 8px; padding: 14px; }
.tour-highlight-item i { color: var(--primary-color); margin-right: 8px; }
.tour-highlight-item span { font-size: 0.88rem; font-weight: 700; }
.tour-timeline { list-style: none; }
.tour-timeline li { display: flex; gap: 16px; margin-bottom: 16px; }
.tl-time { font-weight: 900; color: var(--primary-color); width: 60px; flex-shrink: 0; font-size: 0.85rem; padding-top: 3px; }
.tl-text { font-size: 0.88rem; color: #444; line-height: 1.7; }

.booking-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 2px solid #f5f5f5;
    position: sticky;
    top: 90px;
    height: fit-content;
}
.booking-card .price-big { font-size: 2.2rem; font-weight: 900; margin-bottom: 4px; }
.booking-card .price-big span { font-size: 0.9rem; font-weight: 400; color: #888; }
.booking-card .guide-mini { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 16px 0; }
.booking-card .guide-mini img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.booking-card .guide-mini .gm-name { font-weight: 700; font-size: 0.9rem; }
.booking-card .guide-mini .gm-tag { font-size: 0.75rem; color: #888; }
.booking-card .form-field { margin-bottom: 16px; }
.booking-card label { display: block; font-size: 0.78rem; font-weight: 700; color: #888; margin-bottom: 6px; text-transform: uppercase; }
.booking-card input, .booking-card select { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 8px; font-size: 0.95rem; font-family: 'Noto Sans JP', sans-serif; outline: none; transition: 0.2s; }
.booking-card input:focus, .booking-card select:focus { border-color: var(--primary-color); }
.booking-total { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 2px solid #eee; margin-top: 16px; font-weight: 700; }

/* --- Guide Profile page --- */
.profile-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 100%);
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}
.profile-hero::after { content: ''; position: absolute; inset: 0; background: url('https://placehold.co/1400x600/0a0a0a/ffe10020?text=.') repeat; opacity: 0.03; }
.profile-header { display: flex; gap: 40px; align-items: flex-end; padding-bottom: 40px; position: relative; z-index: 2; }
.profile-img-wrap { position: relative; flex-shrink: 0; }
.profile-img { width: 180px; height: 180px; border-radius: 20px; object-fit: cover; border: 4px solid var(--primary-color); }
.profile-dao-badge { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: #000; font-weight: 900; font-size: 0.7rem; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.profile-info { color: #fff; flex: 1; }
.profile-info .guide-name { font-size: 2.2rem; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.profile-info .guide-name .verified-icon { font-size: 1.4rem; }
.profile-tagline { color: #ccc; font-size: 1rem; margin: 8px 0 16px; }
.profile-stats { display: flex; gap: 32px; }
.profile-stat { text-align: center; }
.profile-stat .num { font-size: 1.8rem; font-weight: 900; color: var(--primary-color); font-family: 'Noto Sans JP', sans-serif; }
.profile-stat .label { font-size: 0.72rem; color: #888; margin-top: 2px; }

.profile-body { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 50px 0 80px; }
.profile-tabs { display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 32px; }
.ptab { padding: 12px 24px; background: none; border: none; font-weight: 700; font-size: 0.9rem; cursor: pointer; color: #888; border-bottom: 3px solid transparent; margin-bottom: -2px; font-family: 'Noto Sans JP', sans-serif; transition: 0.2s; }
.ptab.active { color: var(--secondary-color); border-bottom-color: var(--primary-color); }
.ptab-content { display: none; }
.ptab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.review-card { background: #fafafa; border-radius: 10px; padding: 20px; margin-bottom: 16px; border: 1px solid #eee; }
.review-card .reviewer { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-card .r-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-color); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; color: #000; }
.review-card .r-name { font-weight: 700; font-size: 0.9rem; }
.review-card .r-date { font-size: 0.75rem; color: #888; }
.review-card .r-stars { color: #f1c40f; font-size: 0.85rem; }
.review-card .r-text { font-size: 0.88rem; color: #555; line-height: 1.7; }
.review-card .onchain-badge { display: inline-flex; align-items: center; gap: 4px; background: #e8f5e9; color: #2e7d32; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-top: 8px; }

.contact-card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 6px 24px rgba(0,0,0,0.1); border: 2px solid #f0f0f0; position: sticky; top: 90px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 20px; }
.availability-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 20px; }
.av-day { text-align: center; }
.av-day .day-label { font-size: 0.6rem; color: #888; display: block; margin-bottom: 4px; }
.av-day .day-dot { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; }
.av-day .day-dot.avail { background: var(--primary-color); color: #000; }
.av-day .day-dot.busy { background: #eee; color: #ccc; }
.av-day .day-dot.partial { background: #fff3cd; color: #856404; }

/* --- Registration Form --- */
.reg-form-wrap { max-width: 800px; margin: 0 auto; padding: 60px 0 100px; }
.reg-steps { display: flex; gap: 0; margin-bottom: 50px; }
.reg-step { flex: 1; text-align: center; position: relative; }
.reg-step::after { content: ''; position: absolute; top: 20px; left: 50%; right: -50%; height: 2px; background: #eee; z-index: 0; }
.reg-step:last-child::after { display: none; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; background: #eee; color: #999; font-weight: 900; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; position: relative; z-index: 1; transition: 0.3s; }
.reg-step.active .step-circle { background: var(--primary-color); color: #000; }
.reg-step.done .step-circle { background: #2ecc71; color: #fff; }
.step-label { font-size: 0.72rem; color: #888; font-weight: 700; }
.reg-step.active .step-label { color: var(--secondary-color); }

.form-section { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 24px; border: 1px solid #f0f0f0; }
.form-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-color); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; color: #555; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid #eee; border-radius: 8px;
    font-size: 0.95rem; font-family: 'Noto Sans JP', sans-serif;
    outline: none; transition: 0.2s; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); }
.form-group .hint { font-size: 0.75rem; color: #999; margin-top: 5px; }
.form-group.required label::after { content: ' *'; color: #e74c3c; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-pill { display: flex; align-items: center; gap: 6px; background: #f8f8f8; border: 2px solid #eee; border-radius: 50px; padding: 6px 14px; cursor: pointer; transition: 0.2s; font-size: 0.85rem; }
.checkbox-pill:hover { border-color: var(--primary-color); }
.checkbox-pill input { display: none; }
.checkbox-pill.checked { background: var(--primary-color); border-color: var(--primary-color); font-weight: 700; }
.upload-zone { border: 2px dashed #ddd; border-radius: 10px; padding: 32px; text-align: center; cursor: pointer; transition: 0.2s; }
.upload-zone:hover { border-color: var(--primary-color); background: #fffef0; }
.upload-zone i { font-size: 2rem; color: #ccc; margin-bottom: 8px; display: block; }
.upload-zone p { font-size: 0.85rem; color: #888; }

/* Terms of service page nav */
.legal-nav {
    position: sticky; top: 80px;
    background: #fff; border-radius: 10px;
    padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: fit-content; width: 220px; flex-shrink: 0;
}
.legal-nav h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #888; margin-bottom: 12px; }
.legal-nav a { display: block; font-size: 0.82rem; color: #555; padding: 5px 0; border-left: 3px solid transparent; padding-left: 10px; margin-bottom: 4px; transition: 0.2s; font-weight: 600; }
.legal-nav a:hover, .legal-nav a.active { color: var(--secondary-color); border-left-color: var(--primary-color); }
.legal-with-nav { display: flex; gap: 40px; align-items: flex-start; padding: 60px 0 100px; }
.legal-with-nav .legal-wrap { flex: 1; padding: 0; }

/* Compliance badges */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 40px 0; }
.compliance-card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.07); border-top: 4px solid var(--primary-color); }
.compliance-card .cc-icon { font-size: 2rem; margin-bottom: 12px; }
.compliance-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.compliance-card p { font-size: 0.85rem; color: #666; line-height: 1.7; }
.compliance-badge { display: inline-flex; align-items: center; gap: 6px; background: #e8f5e9; color: #2e7d32; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; margin-top: 12px; }

/* Responsive additions */
@media (max-width: 768px) {
    .page-hero-title { font-size: 2rem; }
    .tour-detail-body, .profile-body { grid-template-columns: 1fr; }
    .search-grid { grid-template-columns: 1fr; }
    .search-layout { grid-template-columns: 1fr; }
    .tour-detail-hero h1 { font-size: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .legal-with-nav { flex-direction: column; }
    .legal-nav { width: 100%; position: static; }
    .profile-stats { justify-content: center; }
}
