:root {
    --primary: #2c3e50;
    --accent: #d32f2f;
    --bg: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text: #333;
    --text-light: #666;
    --border: #eee;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --radius: 16px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
}

.flight-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: inline-flex;
}

.flight-item {
    text-align: left;
}

.flight-item .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.flight-item .value {
    font-weight: 600;
}

/* Phase Section */
.phase-section {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.phase-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg);
    padding-bottom: 20px;
}

.phase-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phase-title {
    font-size: 2.5rem;
    margin: 5px 0;
    color: var(--primary);
}

.phase-dates {
    font-size: 1.1rem;
    color: var(--text-light);
}

.phase-desc {
    margin: 20px 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Map Styling */
.map-container {
    height: 450px;
    width: 100%;
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.activity-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: transform 0.2s;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--primary);
}

.activity-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Marker Labels */
.marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: max-content;
    transform: translate(-50%, -100%); /* Position the bottom of the pin at the coordinate */
}

.marker-label {
    font-size: 11px;
    font-weight: 700;
    color: #1a2a3a;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    margin-bottom: 6px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.marker-pin {
    width: 12px;
    height: 12px;
    background: #e63946;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Tip Box */
.tip-box {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.95rem;
}

/* Transit Styling */
.transit-container {
    margin: -30px auto 30px;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.transit-card {
    background: #fff;
    border: 2px dashed #cbd5e0;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.transit-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transit-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.transit-table th {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.transit-table td {
    padding: 15px 0;
    vertical-align: top;
}

.recommendation-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #bbdefb;
}

.transit-options {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-light);
}

.transit-options li {
    margin-bottom: 4px;
}

.transit-options li::before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
    font-weight: bold;
}

.price-jpy {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.price-usd {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .transit-table, .transit-table thead, .transit-table tbody, .transit-table th, .transit-table td, .transit-table tr {
        display: block;
    }
    .transit-table thead { display: none; }
    .transit-table td {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }
    .transit-table td:last-child { border-bottom: none; }
    .transit-table td::before {
        content: attr(data-label);
        font-weight: 700;
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--text-light);
        margin-bottom: 4px;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .phase-title { font-size: 1.8rem; }
    .flight-summary { flex-direction: column; gap: 15px; padding: 15px 30px; }
    .phase-section { padding: 20px; }
    .activity-card { flex-direction: column; }
    .activity-image { width: 100%; height: 225px; }
}

/* Day Trips Section */
.day-trips-section {
    margin: 30px 0;
    padding: 25px;
    background: #fdfdfd;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
}

.day-trips-section h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-trips-section h3::before {
    content: "🗺️";
}

.day-trip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.day-trip-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.day-trip-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.05rem;
}

.mode-tag {
    font-size: 0.7rem;
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border: 1px solid #bee3f8;
}

.day-trip-details {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-light);
}

.day-trip-details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.day-trip-details li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}
