/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #a8c9a5;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #5a7a58;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a33;
    transition: border-color 0.2s;
    font-weight: 500;
}

a:hover {
    border-bottom-color: #1a1a1a;
}

/* Header */
header {
    background: #1a1a1a;
    color: #a8c9a5;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.header-text {
    text-align: left;
}

.header-cover {
    flex-shrink: 0;
}

.header-cover img {
    width: 200px;
    height: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1a1a1a;
    background-color: #a8c9a5;
    display: inline-block;
    padding: 0.2rem 0.8rem;
}

.subtitle {
    font-size: 1.2rem;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    margin-bottom: 1.5rem;
    color: #a8c9a5;
    font-style: italic;
}

.author {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #a8c9a5;
}

.publisher {
    font-size: 1rem;
    color: #7aa878;
}

.publisher a {
    color: #a8c9a5;
    border-bottom-color: rgba(168, 201, 165, 0.3);
}

.publisher a:hover {
    border-bottom-color: #a8c9a5;
}

/* Header CTA Button */
.header-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: #a8c9a5;
    color: #1a1a1a;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-bottom: none;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.header-cta:hover {
    background: #8fb98d;
    border-bottom: none;
    transform: translateY(-2px);
}

/* Side Navigation */
.nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #1a1a1a;
    border: none;
    border-radius: 4px;
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #a8c9a5;
    border-radius: 1px;
    transition: transform 0.2s;
}

.nav-toggle:hover span {
    background: #fff;
}

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.side-nav.open {
    transform: translateX(0);
}

.side-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #a8c9a5;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.side-nav-close:hover {
    color: #fff;
}

.side-nav a {
    color: #a8c9a5;
    text-decoration: none;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    transition: color 0.2s, padding-left 0.2s;
}

.side-nav a:hover {
    color: #fff;
    padding-left: 10px;
    border-bottom-color: #333;
}

.side-nav a:last-child {
    border-bottom: none;
}

/* Sections */
section {
    margin-bottom: 4rem;
}

/* Unified text size for About section */
.book-intro p,
.casual-power p,
.challenges p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.book-intro {
    margin-bottom: 3rem;
}

/* Key Arguments Grid */
.arguments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.argument {
    background: #1a1a1a;
    padding: 1.5rem;
    border-left: 3px solid #a8c9a5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #a8c9a5;
}

.argument h3 {
    color: #a8c9a5;
    margin-bottom: 0.8rem;
}

/* Casual Power Section */
.casual-power {
    background: #8fb98d;
    padding: 2rem;
    margin: 3rem -2rem;
    border-left: 4px solid #1a1a1a;
}

blockquote {
    font-style: italic;
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 3px solid #1a1a1a;
    color: #2a2a2a;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #3a3a3a;
}

/* Endorsements */
#endorsements {
    background: #1a1a1a;
    padding: 2rem;
    border-top: 2px solid #a8c9a5;
    border-bottom: 2px solid #a8c9a5;
    color: #a8c9a5;
}

#endorsements h2 {
    color: #a8c9a5;
    border-bottom-color: #4a6a48;
}

.endorsement {
    margin-bottom: 2rem;
}

.endorsement:last-child {
    margin-bottom: 0;
}

.endorsement p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.endorsement cite {
    font-size: 0.95rem;
    color: #7aa878;
    font-style: normal;
}

/* Author Section */
.author-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-photo {
    flex-shrink: 0;
}

.author-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-bio {
    flex: 1;
}

.author-bio a {
    color: #1a1a1a;
    font-weight: 600;
}

/* Course List */
.course-list {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
    margin-top: 1rem;
}

.course-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.course-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #1a1a1a;
}

@media (max-width: 600px) {
    .course-list {
        columns: 1;
    }
}

/* Adopter CTA */
.adopter-cta {
    background: #8fb98d;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
    border-left: 4px solid #1a1a1a;
}

.cta-text {
    margin: 0;
    font-size: 1.05rem;
}

/* Form Styles */
#form {
    background: #1a1a1a;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: #a8c9a5;
}

#form h2 {
    margin-top: 0;
    color: #a8c9a5;
    border-bottom-color: #4a6a48;
}

#form p {
    color: #a8c9a5;
}

form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #a8c9a5;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #4a6a48;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #2a2a2a;
    color: #a8c9a5;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #a8c9a5;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #6a8a68;
}

select {
    cursor: pointer;
    background: #2a2a2a;
}

select option {
    background: #2a2a2a;
    color: #a8c9a5;
}

textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

button[type="submit"] {
    background: #a8c9a5;
    color: #1a1a1a;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
    font-weight: 600;
}

button[type="submit"]:hover {
    background: #8fb98d;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #a8c9a5;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

footer a {
    color: #a8c9a5;
    border-bottom-color: rgba(168, 201, 165, 0.3);
}

footer a:hover {
    border-bottom-color: #a8c9a5;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }

    .header-text {
        text-align: center;
    }

    .header-cover img {
        width: 170px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .casual-power,
    #form {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
    }

    .arguments-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .author-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-photo img {
        width: 140px;
        height: 140px;
    }
}

/* Compass Toggle Button */
.compass-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #5a7a58;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    padding: 8px;
}

.compass-toggle:hover {
    opacity: 1;
    transform: translateY(-50%) rotate(15deg);
}

.compass-toggle svg {
    display: block;
}

footer .container {
    position: relative;
}

/* Map mode toggle hint */
.map-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a73e8;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.map-hint.visible {
    opacity: 1;
}

/* Google Maps Parody UI Elements - Hidden by default */
.gmap-search,
.gmap-directions,
.gmap-you-are-here {
    display: none;
}

/* ========================================
   GOOGLE MAPS PARODY MODE
   ======================================== */

.map-mode {
    background-color: #e5e3df !important;
}

/* Fake Google Maps search bar */
.map-mode .gmap-search {
    display: block;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
}

.gmap-search-inner {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.gmap-search-icon {
    font-size: 1.1rem;
    opacity: 0.6;
}

.gmap-search-text {
    flex: 1;
    font-size: 1rem;
    color: #1a1a1a;
}

.gmap-search-x {
    opacity: 0.4;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Directions panel */
.map-mode .gmap-directions {
    display: block;
    position: fixed;
    left: 15px;
    top: 80px;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 9998;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    overflow: hidden;
}

.gmap-directions-header {
    background: #1a73e8;
    color: white;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 0.95rem;
}

.gmap-directions-icon {
    margin-right: 8px;
}

.gmap-directions-content {
    padding: 12px 16px;
}

.gmap-step {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #3c4043;
    border-bottom: 1px solid #f0f0f0;
}

.gmap-step strong {
    margin-left: 0.3em;
}

.gmap-step:last-child {
    border-bottom: none;
}

.gmap-step-icon {
    color: #1a73e8;
    margin-right: 12px;
    font-size: 0.7rem;
}

.gmap-time {
    margin-left: auto;
    color: #70757a;
    font-size: 0.8rem;
}

.gmap-directions-footer {
    background: #f8f9fa;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #5f6368;
}

.gmap-total {
    font-weight: 500;
    color: #1a73e8;
}

/* "You are here" blue dot - positioned on left margin */
.map-mode .gmap-you-are-here {
    display: block;
    position: fixed;
    left: 20px;
    top: 40%;
    transform: translateY(-50%);
    z-index: 9997;
    pointer-events: none;
}

.gmap-dot {
    width: 16px;
    height: 16px;
    background: #4285f4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.gmap-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Header in map mode - place card style */
.map-mode header {
    background: white !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 60px;
}

.map-mode header h1 {
    background: none !important;
    color: #1a1a1a !important;
    padding: 0;
}

.map-mode .subtitle,
.map-mode .author,
.map-mode .publisher {
    color: #5f6368 !important;
}

.map-mode .publisher a {
    color: #1a73e8 !important;
    border-bottom: none;
}

/* Sections as place cards */
.map-mode section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.map-mode section h2 {
    color: #1a1a1a;
    border-bottom-color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-mode section h2::before {
    content: "📍";
    font-size: 1.2rem;
}

/* Rating stars for endorsements */
.map-mode #endorsements {
    background: white !important;
    color: #1a1a1a !important;
    border: none;
}

.map-mode #endorsements h2::after {
    content: " ★★★★★ (2)";
    font-size: 0.8rem;
    color: #70757a;
    font-weight: normal;
    margin-left: auto;
}

.map-mode #endorsements h2::before {
    content: "⭐";
}

.map-mode .endorsement {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #fbbc04;
}

.map-mode .endorsement p {
    color: #3c4043;
    font-size: 0.95rem;
}

/* Author section as "Local Guide" */
.map-mode #author h2::before {
    content: "🧭";
}

.map-mode #author h2::after {
    content: " Local Guide · Level 8";
    font-size: 0.75rem;
    color: #1a73e8;
    font-weight: normal;
    margin-left: 12px;
}

/* Course adoption as "Popular times" style */
.map-mode #courses h2::before {
    content: "📚";
}

/* Form section */
.map-mode #form {
    background: white !important;
    color: #1a1a1a !important;
    border: 2px solid #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.map-mode #form h2 {
    color: #1a1a1a !important;
}

.map-mode #form h2::before {
    content: "✏️";
}

.map-mode #form h2::after {
    content: "Check in";
    font-size: 0.75rem;
    background: #1a73e8;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 500;
}

.map-mode #form p,
.map-mode #form label {
    color: #3c4043 !important;
}

.map-mode #form input,
.map-mode #form select,
.map-mode #form textarea {
    background: #f8f9fa !important;
    color: #1a1a1a !important;
    border: 1px solid #dadce0 !important;
}

.map-mode #form input:focus,
.map-mode #form select:focus,
.map-mode #form textarea:focus {
    border-color: #1a73e8 !important;
    background: white !important;
}

.map-mode #form button[type="submit"] {
    background: #1a73e8;
    color: white;
}

.map-mode #form button[type="submit"]:hover {
    background: #1557b0;
}

/* Arguments grid */
.map-mode .argument {
    background: #f8f9fa !important;
    color: #1a1a1a !important;
    border-left: 3px solid #1a73e8 !important;
}

.map-mode .argument h3 {
    color: #1a1a1a !important;
}

/* Casual power section */
.map-mode .casual-power {
    background: #e8f0fe !important;
    border-left-color: #1a73e8 !important;
}

/* Contact section */
.map-mode #contact h2::before {
    content: "📞";
}

/* Footer */
.map-mode footer {
    background: white !important;
    color: #5f6368 !important;
    border-top: 1px solid #e0e0e0;
    margin-top: 2rem;
}

.map-mode footer p {
    color: #5f6368;
}

.map-mode footer a {
    color: #1a73e8;
    border-bottom: none;
}

.map-mode .compass-toggle {
    color: #1a73e8;
    opacity: 1;
}

/* Route line */
.map-mode main {
    position: relative;
}

.map-mode main::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4285f4;
    border-radius: 2px;
    opacity: 0.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .map-mode .gmap-directions {
        display: none;
    }

    .map-mode .gmap-you-are-here {
        display: none;
    }

    .map-mode .gmap-search {
        top: 10px;
        width: 95%;
    }

    .gmap-search-inner {
        padding: 10px 14px;
    }

    .map-mode header {
        margin-top: 55px;
    }

    .map-mode main::before {
        display: none;
    }

    .compass-toggle {
        right: 10px;
    }
}
