/* ═══════════════════════════════════════════════════════════════════
   GEOSERP PAGE STYLES
   Drop into your child theme: /css/geoserp.css
   Inherits .hp-container, .hp-btn, .hp-btn--primary, .hp-cta from
   homepage-template.css — only adds the page-specific gs-* styles.
   ═══════════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.gs-hero {
    background: #ffffff;
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #eef0f2;
}

.gs-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 87, 34, 0.10);
    color: #FF5722;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
    margin-bottom: 20px;
}

.gs-hero__title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    color: var(--hp-text, #24292e);
    margin: 0 0 18px;
    font-weight: 700;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.gs-hero__text {
    font-size: 17px;
    line-height: 1.6;
    color: #5b6470;
    max-width: 680px;
    margin: 0 auto 28px;
}

.gs-hero__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.gs-hero__note {
    font-size: 13px;
    color: #8a929b;
    margin: 0;
}

/* ── BUTTON VARIANTS not in homepage CSS ── */
.hp-btn--outline {
    background: transparent;
    color: var(--hp-text, #24292e);
    border: 1px solid #d0d4d8;
}
.hp-btn--outline:hover {
    background: rgba(0, 0, 0, 0.04);
}

.hp-btn--ghost {
    background: transparent;
    color: #5b6470;
    border: 1px solid #e0e0e0;
    padding: 10px 18px;
    font-size: 13px;
}
.hp-btn--ghost:hover {
    background: #f3f5f7;
    border-color: #c0c4c8;
}

/* ── SECTIONS ── */
.gs-section {
    padding: 70px 0;
    background: #ffffff;
}

.gs-section--alt {
    background: #f3f5f7;
}

.gs-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FF5722;
    margin-bottom: 14px;
}

.gs-section__heading {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2;
    color: var(--hp-text, #24292e);
    margin: 0 0 18px;
    font-weight: 700;
    max-width: 760px;
}

.gs-section__text {
    font-size: 16px;
    line-height: 1.7;
    color: #5b6470;
    max-width: 760px;
    margin: 0 0 32px;
}

.gs-h3 {
    font-size: 1.2rem;
    margin: 36px 0 12px;
    color: var(--hp-text, #24292e);
    font-weight: 600;
}

.gs-p {
    font-size: 15px;
    line-height: 1.7;
    color: #5b6470;
    max-width: 760px;
    margin: 0 0 16px;
}

.gs-p code,
.gs-section__text code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    color: #FF5722;
}

.gs-section--alt .gs-p code,
.gs-section--alt .gs-section__text code {
    background: #fff;
}

/* ── PROBLEM CARDS ── */
.gs-problems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 12px;
}

.gs-problems__card {
    background: #fff;
    border: 1px solid #e6e8ea;
    border-radius: 12px;
    padding: 24px;
}

.gs-problems__card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-text, #24292e);
    margin: 0 0 8px;
}

.gs-problems__card p {
    font-size: 14px;
    line-height: 1.6;
    color: #667085;
    margin: 0;
}

/* ── FORM ── */
.gs-form {
    margin-top: 24px;
}

/* ── SEARCH-TYPE TOGGLE (segmented control) ── */
.gs-toggle-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.gs-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text, #24292e);
}

.gs-toggle {
    display: inline-flex;
    background: #f3f5f7;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.gs-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #5b6470;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.gs-toggle__btn svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.gs-toggle__btn:hover {
    color: var(--hp-text, #24292e);
}

.gs-toggle__btn:hover svg {
    opacity: 1;
}

.gs-toggle__btn--active {
    background: #fff;
    color: #FF5722;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.gs-toggle__btn--active svg {
    opacity: 1;
}

.gs-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.gs-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text, #24292e);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.gs-field .gs-hint {
    font-size: 12px;
    font-weight: 400;
    color: #8a929b;
}

.gs-field input[type="text"],
.gs-field textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #d0d4d8;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--hp-text, #24292e);
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gs-field input[type="text"]:focus,
.gs-field textarea:focus {
    outline: none;
    border-color: #FF5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.10);
}

.gs-field textarea {
    resize: vertical;
    min-height: 140px;
}

.gs-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── ACTIONS ── */
.gs-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 8px 0 24px;
}

.gs-meta {
    margin-left: auto;
    font-size: 13px;
    color: #8a929b;
    font-family: 'Consolas', 'Monaco', monospace;
}

.gs-meta strong {
    color: #FF5722;
    font-weight: 600;
}

/* ── RESULTS TABLE ── */
.gs-results {
    background: #fff;
    border: 1px solid #e6e8ea;
    border-radius: 12px;
    overflow: hidden;
}

.gs-empty {
    padding: 56px 24px;
    text-align: center;
    color: #8a929b;
    font-size: 14px;
}

.gs-table-wrap {
    overflow-x: auto;
}

.gs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.gs-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a929b;
    font-weight: 600;
    border-bottom: 1px solid #e6e8ea;
    background: #fafbfc;
}

.gs-table tbody tr {
    border-bottom: 1px solid #f0f2f4;
    animation: gsSlideIn 0.25s ease-out backwards;
}

.gs-table tbody tr:last-child { border-bottom: none; }
.gs-table tbody tr:hover { background: #fafbfc; }

.gs-table tbody td {
    padding: 12px 16px;
    vertical-align: top;
    color: var(--hp-text, #24292e);
}

.gs-table tbody td:nth-child(1) { width: 78px; }
.gs-table tbody td:nth-child(2),
.gs-table tbody td:nth-child(3) {
    width: 22%;
    min-width: 140px;
}

.gs-table tbody td a {
    color: #FF5722;
    text-decoration: none;
    word-break: break-all;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.15s;
}

.gs-table tbody td a:hover { border-bottom-color: #FF5722; }

/* ── PILLS (table type badges) ── */
.gs-pill {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.gs-pill--web {
    background: rgba(255, 87, 34, 0.12);
    color: #FF5722;
}

.gs-pill--maps {
    background: rgba(129, 199, 132, 0.18);
    color: #2e7d32;
}

@keyframes gsSlideIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── INSTALL CARD ── */
.gs-install {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-top: 16px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e6e8ea;
    border-radius: 12px;
}

.gs-install__copy h3 {
    font-size: 1.1rem;
    color: var(--hp-text, #24292e);
    margin: 0 0 14px;
    font-weight: 600;
}

.gs-install__steps {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #5b6470;
    font-size: 14px;
    line-height: 1.8;
}

.gs-install__steps li::marker {
    color: #FF5722;
    font-weight: 600;
}

.gs-install__note {
    font-size: 13px;
    color: #8a929b;
    margin: 0;
    font-style: italic;
}

.gs-install__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ── BOOKMARKLET DRAG LINK ── */
.gs-bookmarklet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 28px;
    background: #81c784;
    color: #1a3a1c !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px dashed #1a3a1c;
    box-shadow: 0 4px 16px rgba(129, 199, 132, 0.35);
    cursor: grab;
    user-select: none;
    white-space: nowrap;
    transition: transform 0.1s, box-shadow 0.15s;
}

.gs-bookmarklet:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.5);
}

.gs-bookmarklet:active { cursor: grabbing; }

.gs-bookmarklet__icon { font-size: 18px; }

.gs-bookmarklet--disabled {
    background: #f3f5f7;
    color: #8a929b !important;
    border: 2px dashed #c0c4c8;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.gs-bookmarklet__sub {
    font-size: 11px;
    color: #8a929b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── CODE BLOCKS ── */
.gs-code {
    background: #1a1a1a;
    color: #f0f0f0;
    border-radius: 8px;
    padding: 20px 24px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.7;
    margin: 16px 0 24px;
}

.gs-code code { background: none; padding: 0; border: none; color: inherit; font-size: inherit; }
.gs-code__c { color: #707070; }
.gs-code__k { color: #FF5722; }
.gs-code__s { color: #b8d4a8; }

/* ── FAQ ── */
.gs-faq {
    margin-top: 24px;
    max-width: 820px;
}

.gs-faq__item {
    border-bottom: 1px solid #e0e0e0;
}

.gs-faq__item:first-child {
    border-top: 1px solid #e0e0e0;
}

.gs-faq__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-text, #24292e);
    user-select: none;
    gap: 12px;
}

.gs-faq__toggle::after {
    content: '+';
    font-family: 'Consolas', monospace;
    font-size: 20px;
    color: #FF5722;
    line-height: 1;
}

.gs-faq__item--open .gs-faq__toggle::after { content: '−'; }

.gs-faq__a {
    display: none;
    padding-bottom: 20px;
}

.gs-faq__item--open .gs-faq__a { display: block; }

.gs-faq__a p {
    font-size: 14px;
    color: #667085;
    line-height: 1.7;
    margin: 0;
    max-width: 740px;
}

.gs-faq__a code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12.5px;
    background: #f3f5f7;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    color: #FF5722;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .gs-problems { grid-template-columns: 1fr; }
    .gs-install { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
    .gs-install__cta { align-items: flex-start; }
}

@media (max-width: 680px) {
    .gs-hero { padding: 50px 0 40px; }
    .gs-section { padding: 50px 0; }
    .gs-form__grid { grid-template-columns: 1fr; gap: 14px; }
    .gs-actions { gap: 8px; }
    .gs-meta { margin-left: 0; width: 100%; }
    .gs-toggle-row { gap: 10px; }
    .gs-toggle__btn { padding: 8px 12px; font-size: 12px; }
}
