* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #fafafa;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --border: #e5e5e5;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #f59e0b;
    --success: #10b981;
    --purple: #8b5cf6;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

.app {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
}

header {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Steps */
.step { display: block; }
.step.hidden { display: none; }

.step-content {
    background: var(--card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; }

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0;
}
.back-btn:hover { color: var(--text); }

/* Inputs */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.main-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.main-input:focus {
    outline: none;
    border-color: var(--primary);
}

.time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.time-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
}

.time-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    padding: 0.75rem 1.25rem;
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

/* Pace Cards */
.pace-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pace-card {
    cursor: pointer;
}

.pace-card input { display: none; }

.pace-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.pace-card input:checked + .pace-inner {
    border-color: var(--primary);
    background: #eff6ff;
}

.pace-emoji { font-size: 1.5rem; }
.pace-name { font-weight: 600; }
.pace-desc { color: var(--text-secondary); font-size: 0.85rem; margin-left: auto; }

@media (max-width: 500px) {
    .pace-inner { flex-wrap: wrap; }
    .pace-desc { width: 100%; margin-left: 2.5rem; margin-top: 0.25rem; }
}

/* Toggles */
.toggle-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.toggle:has(input:checked) {
    border-color: var(--success);
    background: #ecfdf5;
}

.toggle input { display: none; }
.toggle-label { font-size: 0.9rem; }

/* Activities */
.activities-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.activities-input .main-input {
    flex: 1;
}

.btn-add {
    padding: 0 1.25rem;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.5rem 0.875rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    border-color: var(--text-secondary);
}

.activities-list {
    min-height: 60px;
    margin-bottom: 1.5rem;
}

.activity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 0.25rem;
}

.activity-chip button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

.activity-chip button:hover { color: #ef4444; }

.btn-generate {
    margin-top: 0.5rem;
}

.helper-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* Loading */
.loading-content {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loading-content h2 { margin-bottom: 0.5rem; }
.loading-content p { color: var(--text-secondary); margin-bottom: 2rem; }

/* AdSense Container */
.ad-container {
    margin-top: 1.5rem;
    min-height: 100px;
}

.ad-container-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Viator Promo Box */
.promo-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    text-align: left;
}

.promo-icon {
    font-size: 2rem;
}

.promo-content {
    flex: 1;
}

.promo-content strong {
    display: block;
    color: #065f46;
    font-size: 1rem;
}

.promo-content p {
    color: #047857;
    font-size: 0.85rem;
    margin: 0.125rem 0 0 0;
}

.promo-btn {
    background: #10b981;
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.promo-btn:hover {
    background: #059669;
}

/* Results */
.results-content {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-header h2 {
    margin-bottom: 0.25rem;
}

.results-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Option Tabs */
.options-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.option-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.875rem 0.5rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-tab:hover { border-color: var(--text-secondary); }

.option-tab.active {
    border-color: var(--primary);
    background: #eff6ff;
}

.option-icon { font-size: 1.25rem; }
.option-name { font-size: 0.8rem; font-weight: 600; }

.option-description {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.option-description strong {
    color: var(--text);
}

/* Itinerary */
.itinerary {
    margin-bottom: 1.5rem;
}

.itinerary-item {
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.itinerary-item:last-child {
    padding-bottom: 0;
}

.itinerary-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.item-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-venue {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.item-highlights {
    background: #fefce8;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.item-highlights-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.item-highlights ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text);
}

.item-highlights li {
    margin-bottom: 0.25rem;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.item-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg);
    border-radius: 4px;
    color: var(--text-secondary);
}

.item-tag.kid { background: #ecfdf5; color: #059669; }
.item-tag.pet { background: #eff6ff; color: #2563eb; }

.item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.item-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.item-directions:hover { text-decoration: underline; }

/* Book Tickets Button */
.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    background: #00aa6c;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: opacity 0.2s;
}

.btn-book:hover {
    opacity: 0.9;
}

.btn-reserve {
    background: #dc2626;
}

/* Summary */
.day-summary {
    background: var(--bg);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.summary-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.summary-item {
    font-size: 0.85rem;
}

.summary-label {
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
}

.summary-tips {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.summary-tips-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-tips ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Booking Section */
.booking-section {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.booking-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.booking-section > p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.booking-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.booking-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}

.booking-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.booking-btn.viator {
    background: linear-gradient(135deg, #00aa6c, #00875a);
}

.booking-btn.gyg {
    background: linear-gradient(135deg, #ff5533, #e63900);
}

.booking-btn-icon {
    font-size: 1.25rem;
}

.booking-btn-text {
    text-align: left;
}

.booking-btn-text strong {
    display: block;
    font-size: 0.95rem;
}

.booking-btn-text small {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.hidden { display: none !important; }

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand p {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888;
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: #666 !important;
    margin-top: 0.75rem !important;
}
