/* Paratourco Plugin Styles */

/* Layout Resets */
body.page-id-35 .widget-area.sidebar {
    display: none !important;
}
body.page-id-35 .site-content .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    font-size:24px;
}

/* Map Container */
body.page-id-35 #paratourco-container {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    height: 72vh !important;
    margin: 0 auto;
    overflow: hidden;
}
body.page-id-35 #paratourco-map-wrapper {
    position: absolute !important;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
}
#map {
    z-index: 1 !important;
    position: absolute;
}

/* Toolbar */
#map-toolbar {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 0.5em 1em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1010;
    display: flex;
    gap: 1em;
    font-size: 14px;
    align-items: center;
}

/* Dropdown */
#tour-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5em;
    background: white;
    border: 1px solid #ccc;
    padding: 8px;
    z-index: 1011;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}
#tour-dropdown.hidden {
    display: none;
}
#tour-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#tour-dropdown li {
    padding: 6px 8px;
    cursor: pointer;
}
#tour-dropdown li:hover {
    background: #f0f0f0;
}

/* Selection Toolbar */
#tour-select-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.97);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1012;
    border-top: 1px solid #ccc;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    transition: transform 0.25s ease;
}
#tour-select-controls.hidden {
    transform: translateY(100%);
}
#tour-select-controls .cta-group {
    display: flex;
    gap: 8px;
}

/* Sidebar */
#paratourco-sidebar {
    background: #fff;
    border-left: 1px solid #E5E7EB;
    box-shadow: 0 0 8px 0 #C7CED9;
    font-family: 'Inter', 'Arial', sans-serif;
    padding: 32px 22px 16px 22px;
    min-width: 320px;
    max-width: 410px;
    color: #182142;
    position:absolute;top:0;
    right:-320px;
    height:100%; 
    overflow-y:auto;
    transition:right .3s ease;
    z-index:1000;
}
/* Base sidebar style—positioned on the right edge but translated completely off-screen */
#paratourco-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  transform: translateX(100%);      /* move 100% of its width off-screen */
  transition: transform 0.3s ease;
  /* remove any right:-320px here */
}

/* When sidebar should be visible */
#paratourco-sidebar.open {
  transform: translateX(0);         /* slide back into view */
}

/* Adjust container when sidebar is open */
#paratourco-container {
  transition: margin-right 0.3s ease;
}

#paratourco-container.sidebar-open {
  margin-right: 320px;
}

.sidebar-section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 6px;
    color: #3B4252;
    letter-spacing: -1px;
}
#tour-count-badge {
    background: #3972e6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 1em;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 18px;
    margin-top: 0;
    box-shadow: 0 1px 5px #21418819;
}
.tour-subsection {
    margin-bottom: 22px;
}
.sidebar-cluster-block {
    background: #F5F8FB;
    border-radius: 7px;
    border: 1px solid #E1E5ED;
    margin-bottom: 16px;
    box-shadow: 0 1.5px 6px #CBDAE660;
    padding: 10px 12px 8px 12px;
}
.sidebar-cluster-summary {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 1.1em;
    color: #1e293b;
    margin-bottom: 8px;
}

.sidebar-cluster-summary .cluster-label {
    flex: 1;
    min-width: 0;
}

.sidebar-cluster-summary .cluster-label strong {
    display: block;
    font-weight: 700;
    line-height: 1.3;
}

.cluster-state-summary,
.cluster-type-summary {
    font-size: 0.82em;
    font-weight: 400;
    line-height: 1.35;
    color: #64748b;
    margin-top: 3px;
}
.sidebar-location-list {
    list-style: none;
    padding-left: 0;
}
.sidebar-location-row {
    display: flex;
    align-items: center;
    padding: 2px 0 2px 0;
    border-bottom: 1px solid #EFF5FB;
    min-height: 32px;
}
.sidebar-location-row:last-child {
    border-bottom: none;
}
.location-name {
    font-size: 1em;
    margin-left: 8px;
    color: #223262;
}
.tour-select-checkbox {
    accent-color: #3972e6;
    width: 18px;
    height: 18px;
}
.sidebar-cluster-block .cluster-remove-btn,
.sidebar-location-row .remove-site-btn {
    margin-left: auto;
    padding: 4px 10px;
    background-color: #F2EDED;
    color: #D32F2F;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background .2s;
}
.sidebar-cluster-block .cluster-remove-btn:hover,
.sidebar-location-row .remove-site-btn:hover {
    background-color: #EDE7E7;
}
.badge {
    background: #B7D3FF;
    color: #2C4565;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    padding: 1.5px 9px;
    margin-left: 7px;
}

#paratourco-sidebar.open {
    right: 0 !important;
}
body.page-id-35 #paratourco-container.sidebar-open #paratourco-map-wrapper {
    right: 320px;
    transition: right 0.3s ease;
}

/* Responsive Sidebar */
@media (max-width: 767px) {
    body.page-id-35 #paratourco-sidebar {
        top: auto;
        bottom: -50%;
        right: 0;
        width: 100%;
        height: 50%;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    }
    body.page-id-35 #paratourco-sidebar.open {
        bottom: 0;
    }
    body.page-id-35 #paratourco-container.sidebar-open #paratourco-map-wrapper {
        right: 0 !important;
        bottom: 50%;
    }
}

/* Info Panel */
#info-panel {
    padding: 20px;
    font-family: sans-serif;
    line-height: 1.4;
}
#info-panel h2 {
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5em;
}
#info-panel p {
    margin: 0.5em 0;
}
#info-panel img {
    display: block;
    margin: 10px auto;
    max-width: 100%;
    border-radius: 4px;
}
#close-info {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: red;
    padding: 0;
}
#close-info:hover {
    color: #000;
}


/* Active inspected map location */
.ptc-active-info-marker {
    z-index: 9999 !important;
    filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px #facc15);
}

.ptc-active-location-ring {
    width: 52px;
    height: 52px;
    border: 4px solid #facc15;
    border-radius: 999px;
    background: rgba(250,204,21,0.16);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.9), 0 0 24px rgba(250,204,21,0.95);
    pointer-events: none;
}


/* Map filter point + notices */
.ptc-filter-center-marker {
    width: 46px;
    height: 46px;
    border: 4px solid #facc15;
    border-radius: 999px;
    background: rgba(250,204,21,0.16);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.9), 0 0 24px rgba(250,204,21,0.95);
    pointer-events: none;
}


.ptc-nearby-map-controls {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 2600;
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: calc(100% - 24px);
    padding: 8px;
    background: rgba(255,255,255,0.96);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.24);
}

.ptc-nearby-map-controls[hidden] {
    display: none !important;
}

.ptc-nearby-map-label {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: #111827;
}

#ptc-nearby-map-radius,
#ptc-nearby-map-done,
#ptc-nearby-map-reset {
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 0 10px;
    font-size: 13px;
}

#ptc-nearby-map-done {
    background: #111827;
    color: #fff;
}

@media (max-width: 520px) {
    .ptc-nearby-map-controls {
        left: 12px;
        right: 12px;
        bottom: 12px;
        transform: none;
        border-radius: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ptc-nearby-map-label {
        width: 100%;
        text-align: center;
    }
}

.ptc-map-notice {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 2500;
    max-width: calc(100% - 32px);
    background: rgba(17,24,39,0.92);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* Marker Styling */
.mapboxgl-marker,
.cluster-marker,
.marker {
    pointer-events: auto;
    font-family: sans-serif;
}

/* Universal Selected Marker/Cluster */
.mapboxgl-marker.selected,
.cluster-marker.selected,
.selected-marker {
    border: 2px solid #1976d2;
    box-shadow: 0 0 8px #1976d2;
    opacity: 0.8;
    background-color: #e3f2fd;
}

/* Icon Colors */
[class*="icon-"] i { color: #666; }
.icon-cemetery i   { color: #000; }
.icon-church i     { color: #E69F00; }
.icon-school i     { color: #56B4E9; }
.icon-lodging i    { color: #009E73; }
.icon-residence i  { color: #F0E442; }
.icon-restaurant i { color: #D55E00; }
.icon-retail i     { color: #CC79A7; }
.icon-park i       { color: #0072B2; }
.icon-haunted i    { color: #9E0059; }
.icon-historic i   { color: #999999; }
.icon-museum i     { color: #E41A1C; }
.icon-jail i       { color: #377EB8; }
.icon-tunnel i     { color: #984EA3; }
.icon-water i      { color: #1F78B4; }
.icon-woods i      { color: #4DAF4A; }
.icon-field i      { color: #FFFF33; }
.icon-mountain i   { color: #A65628; }
.icon-street i     { color: #B15928; }
.icon-infrastructure i { color: #7570B3; }

/* Buttons */
.cta {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: system-ui, sans-serif;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    background-color: #222;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.cta:hover,
.cta:focus {
    background-color: #333;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.28);
}

#tours-btn.cta.toggle {
    all: unset;
    box-sizing: border-box;
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #222;
    background-color: #f9f9f9;
    padding: 8px 14px;
    border: 1px solid #444;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
#tours-btn.cta.toggle:hover {
    background-color: #e1e1e1;
}
#tours-btn.cta.toggle.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}
#tours-btn.cta.toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transform-origin: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
#tours-btn.cta.toggle:active::after {
    transform: scale(2.5);
    opacity: 0;
}
#tour-count-badge {
    position: absolute;
    top: 6px;
    right: 16px;
    z-index: 100;
    background: #666;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
}
.cluster-selection-index,
.sidebar-cluster-selection-index {
    background: #1976d2;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 3px;
    z-index: 2;
}
.marker-selected {
    box-shadow: 0 0 0 4px #36a2e2, 0 0 14px #36a2e2;
    border: 2px solid #36a2e2;
}
.sidebar-location-row.active,
.sidebar-cluster-block.active > .sidebar-cluster-summary,
.sidebar-cluster-block:focus > .sidebar-cluster-summary {
    background: #E4F1FF;
    color: #14498d;
}
.marker.marker-highlight,
.cluster-marker.marker-highlight {
    box-shadow: 0 0 0 4px #A3CBFF, 0 1px 2px #458dde55;
    z-index: 20;
}
.sidebar-cluster-block.active {
    border-color: #3989e6;
}
.sidebar-location-row.active {
    background: #E4F1FF;
    color: #14498d;
}
.marker.marker-highlight,
.cluster-marker.marker-highlight {
    box-shadow: 0 0 0 4px #A3CBFF;
    z-index: 21;
}
.marker.marker-highlight,
.cluster-marker.marker-highlight {
    box-shadow: 0 0 0 5px #FFD600, 0 1px 2px #FFD60044;
    z-index: 21;
}
button:disabled {
    background: #eee !important;
    color: #999 !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}
.ptc-tour-table { width: 100%; border-collapse: collapse; font-size: 1em; }
.ptc-tour-table th, .ptc-tour-table td { padding: .7em .5em; border-bottom: 1px solid #eee; }
.ptc-tour-table th { background: #f3f6fa; font-weight: 600; }
.ptc-expander { background: none; border: none; cursor: pointer; font-size: 1.25em; }
.ptc-tour-details { display: none; background: #f8fcff; }
@media (max-width:700px) {
    .ptc-tour-table thead { display: none; }
    .ptc-tour-table, .ptc-tour-table tbody, .ptc-tour-table tr { display: block; width: 100%; }
    .ptc-tour-table td {
        display: flex; justify-content: space-between; align-items: center;
        border: none; border-bottom: 1px solid #eee;
    }
    .ptc-tour-table td:before {
        content: attr(data-label) ": "; font-weight: 600; color: #444;
    }
}

/* Paratourco Collapsible Toggles (optimized, stands out) */
.ptc-collapsible {
    margin-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
}
.ptc-collapsible-toggle {
    background: linear-gradient(90deg,#ddf2ff 10%,#eaf6fc 100%);
    border: 2px solid #6bc2fa;
    border-radius: 10px;
    font-size: 1.22em;
    font-weight: 700;
    color: #187bb8;
    padding: 15px 22px;
    margin-bottom: 16px;
    margin-top: 9px;
    box-shadow: 0 2px 6px #e7f0fb;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .13s;
}
.ptc-collapsible-toggle:hover,
.ptc-collapsible-toggle:focus {
    background: #c2e7fd;
    border-color: #4ca1e2;
    color: #145981;
    outline: none;
    box-shadow: 0 4px 15px #bbdae8;
}
.ptc-caret {
    font-size: 1.8em;
    margin-right: 10px;
    color: #2291d3;
    transition: color .13s;
}
.ptc-location-h2 {
    font-size: 1.34em;
    font-weight: 800;
    margin-top: 18px;
    margin-bottom: 10px;
}
.ptc-location-drawer {
    position: fixed; top: 0; right: 0; width: 0; height: 100vh;
    z-index: 20001; background: transparent;
    display: none; transition: width .2s cubic-bezier(.7,0,.33,1);
}
.ptc-location-drawer.open {
    width: 100vw;
    background: rgba(35,41,70,0.38);
    transition: background .24s;
}
.ptc-drawer-sheet {
    position: absolute; top:0; right:0; height:100vh;
    background: #fff; width: 420px; max-width:100vw;
    max-height:100vh; overflow-y:auto; display: flex; flex-direction: column;
    box-shadow: -8px 0 32px #2223;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.48,.05,.23,1);
}
.ptc-location-drawer.open .ptc-drawer-sheet {
    transform: translateX(0);
}
@media (max-width:650px) {
    .ptc-drawer-sheet {
        width:99vw; left: 0; right:0; border-radius: 0;
    }
}
.ptc-drawer-close {
    background: none; border: none; font-size: 2.1em; color: #333; position: absolute; top: 8px; right: 16px; cursor: pointer;
}
.ptc-drawer-sheet h2 { margin-top: 24px; margin-bottom: 22px; font-size: 1.32em; text-align: left;}
.ptc-drawer-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.ptc-drawer-field label { font-weight: 700; margin-bottom: 8px; color: #187bb8;}
.ptc-drawer-field input, .ptc-drawer-field textarea { font-size: 1.09em; padding: 7px 10px; border-radius: 6px; border: 1px solid #e2e7ee; }
.ptc-drawer-actions { display: flex; gap: 1em; justify-content: flex-end; margin-top: 18px;}

/* Paratourco Admin Location Cards */
.ptc-locations-admin-list {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1vw 5vw 1vw;
    box-sizing: border-box;
}
.ptc-location-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px #d7e0f580;
    margin-bottom: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: box-shadow 0.3s;
}
.ptc-card-add {
    border: 2px dashed #4682f3;
    margin-top: 10px;
    box-shadow: none;
    background: #f8fafc;
}
.ptc-card-entry {
    border: 1.5px solid #e0eeff;
}
.ptc-card-toggle {
    cursor: pointer;
    display: flex;
    width: 100%;
    align-items: center;
    background: #f5fafd;
    border: none;
    outline: none;
    font-size: 1.17em;
    font-weight: 700;
    gap: 1em;
    padding: 1em 1.2em;
    border-bottom: 1px solid #e4e9f3;
    transition: background 0.2s;
}
.ptc-card-toggle[aria-expanded="true"] .ptc-card-chevron {
    transform: rotate(180deg);
}
.ptc-card-title {
    flex: 1 1 60%;
    color: #1b223a;
}
.ptc-card-status.active {
    color: #24af4a;
    font-weight: 600;
}
.ptc-card-status.inactive {
    color: #d32f2f;
    font-weight: 600;
}
.ptc-card-chevron {
    font-size: 1.1em;
    margin-left: 12px;
    transition: transform 0.22s;
}
.ptc-card-details {
    background: #fff;
    padding: 0.95em 1.2em 1.2em 1.2em;
    display: block;
    animation: fadein 0.22s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.ptc-card-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 2vw;
}
.ptc-card-fields label {
    display: flex;
    flex-direction: column;
    min-width: 105px;
    flex: 1 1 44vw;
    margin-bottom: 5px;
    font-weight: 500;
    color: #304360;
}
.ptc-card-fields input,
.ptc-card-fields textarea,
.ptc-card-fields select {
    font-size: 1.1em;
    padding: 9px 12px !important;
    margin-top: 0.17em;
    background: #f6f8fa;
    border: 1.2px solid #b8d0f2;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
    transition: border 0.2s;
}
.ptc-card-fields input:focus,
.ptc-card-fields textarea:focus,
.ptc-card-fields select:focus {
    border: 1.5px solid #4682f3;
    background: #eef6ff;
}
.ptc-card-fields textarea {
    min-height: 40px;
    resize: vertical;
}
.ptc-card-actions {
    display: flex;
    gap: 0.8em;
    justify-content: flex-start;
    padding: 1.1em 0 0.3em 0;
}
.ptc-location-delete {
    background: #fff;
    color: #eb3b3b;
    border: 1.3px solid #eb3b3b;
    font-weight: 600;
}
.ptc-location-delete:hover {
    background: #eb3b3b;
    color: #fff;
}
@media (max-width: 740px) {
    .ptc-card-fields {
        flex-direction: column;
        gap: 4px;
    }
    .ptc-card-fields label {
        min-width: 98px;
        flex-basis: 100%;
        font-size: 1em;
    }
    .ptc-card-toggle, .ptc-card-details { padding-left: 1vw; padding-right: 1vw;}
    .ptc-locations-admin-list { padding: 0 0.5vw 10vw 0.5vw;}
}
@media (max-width: 480px) {
    .ptc-location-card { border-radius: 0; }
    .ptc-locations-admin-list { padding: 0; }
    .ptc-card-toggle, .ptc-card-details { font-size: 1em; }
}
.ptc-card-toggle, .ptc-card-actions button,
.ptc-card-actions input[type="submit"],
.ptc-card-actions input[type="button"] {
    min-height: 46px;
    min-width: 44px;
    font-size: 1em;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.ptc-card-toggle:focus, .ptc-card-actions button:focus { outline: 2px solid #4682f3 !important; }
.ptc-card-title, .ptc-card-status, .ptc-card-chevron { pointer-events: none; }
.ptc-card-toggle[aria-expanded="true"] { background: #eef6ff; }
.ptc-card-details[hidden] { display: none !important; }

/* Responsive admin table for Locations */
.ptc-location-table {
    table-layout: auto !important; 
    width: 100% !important;
    border-collapse: collapse;
}
.ptc-location-table td {
    white-space: normal !important; 
    overflow: visible !important;   
    text-overflow: clip !important; 
    padding: 12px 10px !important;
    vertical-align: top !important;
}
.ptc-location-table .ptc-display[data-field="name"] {
    display: block !important;
    min-width: 300px; 
    font-weight: 700;
    color: #1b223a;
}
.ptc-location-table .ptc-display[data-field="paranormal_lore"] {
    display: block;
    max-height: 120px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
    border-left: 2px solid #e0eeff;
    padding-left: 8px;
}
.ptc-location-table input[type="text"] {
    width: 98%;
    min-width: 50px;
    max-width: 140px;
}
.ptc-location-table select { width: 90px; }
@media (max-width: 700px) {
    .ptc-location-table,
    .ptc-location-table tbody,
    .ptc-location-table tr {
        display: block;
        width: 100%;
    }
    .ptc-location-table thead { display: none; }
    .ptc-location-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 9px 3px;
        font-size: 1em;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }
    .ptc-location-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #444;
        flex: 1 1 40%;
        min-width: 84px;
        margin-right: 9px;
    }
    .ptc-location-table td > * {
        flex: 3 1 60%;
        min-width: 60px;
        margin-left: 6px;
        font-size: 0.99em;
    }
    .ptc-location-table input[type="text"],
    .ptc-location-table select {
        max-width: 95%;
        font-size: 1em;
    }
}
.ptc-actions-row { display: flex; gap: 8px; align-items: center; }
.ptc-actions-row button { margin: 0; display: inline-flex; align-items: center; vertical-align: middle; }
.ptc-location-table td { vertical-align: middle; }
.inside-site-info grid-container .copyright-bar .copyright ~ * { display: none; }
.wp-block-column { display:none; font-size:24px; }

/* Paratourco Public Tour Landing Grid */
.paratourco-tour-landing-grid .section-header {
    color: #2c3e50;
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 20px;
}
.location-cards-container { display: flex; flex-wrap: wrap; gap: 20px; }
.location-card.paratourco-surface {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}
.location-hero-img { border-radius: 4px; width: 100%; height: auto; margin-bottom: 15px; }
.location-card h3 { color: #2c3e50; font-size: 18px; font-weight: bold; margin-top: 0; margin-bottom: 10px; }
.location-lore-snippet { color: #333; font-size: 14px; line-height: 1.5; margin-bottom: 15px; }
.dossier-link-btn {
    display: inline-block;
    background-color: #208091;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.dossier-link-btn:hover { background-color: #1a6a78; }
.ptc-count-number {
    background: #27ae60;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.1em;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
    min-width: 20px;
    text-align: center;
}

/* ========================================================= */
/* --- NEW: CURATION TRAY GRID & ITEM STYLES --- */
/* ========================================================= */

#ptc-tray-items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}

.ptc-tray-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    box-sizing: border-box;
    min-width: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ptc-tray-item.is-root {
    border-color: #208091;
    background: #f0f9fa;
}

.ptc-tray-item-radio {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.ptc-tray-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.ptc-tray-item-dist {
    color: #64748b;
    font-size: 11px;
    flex-shrink: 0;
}

.ptc-tray-item-root-badge {
    background: #208091;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ptc-remove-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: auto;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #ef4444;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.ptc-remove-item:hover {
    color: #b91c1c;
}
/* Fix for Curation Controls Layout */
.ptc-curation-controls-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    width: 100%;
}
/* Force the "Action Shelf" Alignment */
.pt-dashboard-row {
    display: flex;
    align-items: stretch;
}

.pt-column-cell {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to the bottom */
    padding: 15px;
    height: 100%;
}

.pt-btn-row {
    margin-top: 15px; /* Ensures spacing from text above */
}
/* --- The Table & Rows --- */
    .pt-ops-table td {
        vertical-align: bottom !important; 
        padding: 24px 20px !important;
        line-height: 1.6;
        border-bottom: 1px solid #e2e4e7; /* Softer border */
        background-color: #ffffff;
        transition: background-color 0.2s ease;
    }

    /* Subtle row highlight so the operator doesn't lose her place */
    .pt-ops-table tbody tr:hover td {
        background-color: #f8f9f9; 
    }

    /* --- The Data Points --- */
    .pt-data-point {
        font-size: 13px; /* Smaller label text */
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #8c8f94; /* Muted label */
        margin-bottom: 15px;
        line-height: 1.2;
    }

    /* Override the inline 16px to make the numbers massive and bold */
    .pt-data-point strong {
        font-size: 24px !important; 
        color: #1d2327; /* High contrast black */
        display: block; /* Stacks the number cleanly above the label */
        margin-bottom: 2px;
    }

    /* --- The Chunky Action Buttons --- */
    .pt-btn-chunky {
        width: 100%;
        background-color: #ffffff !important;
        border: 1px solid #c3c4c7 !important;
        color: #2271b1 !important;
        font-weight: 600 !important;
        text-align: center;
        padding: 8px 14px !important;
        font-size: 14px !important;
        border-radius: 6px !important; /* Slightly rounder, modern feel */
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important; /* Subtle depth */
        transition: all 0.2s ease;
    }

    /* Tactile Hover State */
    .pt-btn-chunky:hover {
        border-color: #2271b1 !important; /* Blue border pops on hover */
        background-color: #f6f7f7 !important;
        color: #135e96 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
        transform: translateY(-1px); /* Very slight lift */
    }

    .pt-btn-chunky .dashicons {
        margin-right: 6px;
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        line-height: 1 !important;
        color: #787c82; /* Icons start slightly muted */
        transition: color 0.2s ease;
    }

    /* Icons light up blue when the button is hovered */
    .pt-btn-chunky:hover .dashicons {
        color: #2271b1; 
    }

    /* --- Locked Cost Button --- */
    .button.disabled {
        background: #f0f0f1 !important;
        color: #a7aaad !important;
        border-color: #dcdcde !important;
        box-shadow: none !important;
        transform: none !important;
    }


/* Map filter controls */
body.page-id-35 .ptc-map-filters {
    display: grid;
    gap: 16px;
}

body.page-id-35 .ptc-map-filters input,
body.page-id-35 .ptc-map-filters select,
body.page-id-35 .ptc-map-filters button {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    font-size: 20px !important;
    line-height: 1.35;
    border-radius: 8px;
    box-sizing: border-box;
}

body.page-id-35 .ptc-map-filters select,
body.page-id-35 .ptc-map-filters input {
    border: 1px solid #cfd6df;
    background: #f9fafb;
    color: #111827;
}

body.page-id-35 .ptc-filter-sheet {
    font-size: 20px;
}

/* Map page: keep the map inside normal site chrome */
body.page-id-35 #paratourco-container {
    position: relative !important;
    width: 100% !important;
    height: 72vh !important;
    margin: 0 auto 32px !important;
    overflow: hidden !important;
}

body.page-id-35 #map-toolbar.ptc-toolbar {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 5000 !important;
}

/* Explore sheet should be opaque over the map/page chrome */
body.page-id-35 .ptc-filter-sheet {
    background: #fff !important;
}
/* Embedded tour map pins */
.ptc-map-mode-embed .marker {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #111827;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    cursor: pointer;
}

.ptc-map-mode-embed .marker .marker-icon {
    font-size: 18px;
    line-height: 1;
}

/* Map cluster location inspection rows */
.cluster-list-item .cluster-item {
    background: #f8fafc;
    color: #223262;
    border: 1px solid #e1e5ed;
    border-radius: 4px;
    box-shadow: none;
    padding: 8px 10px;
}

.cluster-list-item .cluster-item:hover,
.cluster-list-item .cluster-item:focus {
    background: #eef3f8;
    color: #223262;
    border-color: #cbd5e1;
    box-shadow: none;
}

.ptc-map-activation-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: pan-y;
    background: rgba(255, 255, 255, 0.01);
}

.ptc-map-activation-overlay span {
    background: rgba(20, 26, 32, 0.88);
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* Tour Builder individual location pins */
.ptc-map-mode-standalone .marker {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #334155;
    box-shadow: 0 2px 10px rgba(0,0,0,0.32);
    cursor: pointer;
}

.ptc-map-mode-standalone .marker .marker-icon {
    font-size: 21px;
    line-height: 1;
}
