/* Safaris - Uganda marketplace design system
   Inherits the ugandasafaris-asv theme tokens (--olive, --gold, --ink, --cream,
   --line, --text, --serif, --sans) with safe fallbacks for admin screens and
   anywhere the theme stylesheet is not loaded. Every --ato-* value below
   resolves to a Uganda Safaris palette colour. */

:root,
body,
.ato-single-tour-container,
.ato-taxonomy-page-v2 {
    /*
     * The reading measure.
     *
     * Every long prose block in this plugin ran the full width of the 1180px container,
     * which put the activity guide at 122 characters a line, the safari description at
     * 108 and an itinerary day at 151. Comfortable reading is 50 to 75: past that the
     * eye loses its place on the return sweep, and the activity guides are five
     * thousand pixels tall, so it compounds.
     *
     * The theme's own page template was already doing this right at around 780px and 86
     * characters, which is what made the plugin templates look wrong beside it.
     *
     * Measured rather than guessed: at this font the column runs about 0.109 characters
     * per pixel, so 700px lands near 76 characters. Layout containers are deliberately
     * NOT constrained here, only the blocks that hold sentences.
     */
    --ato-measure: 700px;

    /* Brand: deep safari green is primary, gold is the accent */
    --ato-primary: var(--olive, #12554b);
    --ato-primary-hover: var(--olive-dark, #0c332b);

    --ato-secondary: var(--gold, #b08d4f);
    --ato-secondary-hover: var(--gold-dark, #9a7c48);
    --ato-secondary-light: var(--tan, #e2ba75);

    --ato-accent: var(--gold, #b08d4f);
    --ato-accent-hover: var(--gold-dark, #9a7c48);

    --ato-dark: var(--ink, #0c332b);
    --ato-text-main: var(--text, #5b615e);
    --ato-text-muted: var(--muted, #7a817d);

    --ato-bg-light: var(--cream, #f6f2ea);
    --ato-bg-white: var(--paper, #fbfaf6);
    --ato-border-color: var(--line, #eee9df);
    --ato-glass-bg: rgba(var(--cream-rgb), 0.92);
    --ato-footer: var(--footer, #03403a);
    --ato-rule: var(--rule, #c8cfcb);
    --ato-on-dark: var(--on-dark, #b4c3bf);

    /* Mappings for legacy classes */
    --ato-primary-light: var(--tan, #e2ba75);
    --ato-primary-dark: var(--olive-dark, #0c332b);

    /* System */
    --ato-success: #2f7d4f;
    --ato-danger: #a8433a;
    --ato-warning: var(--tan, #e2ba75);

    /* Title/Heading Color */
    --ato-title-color: var(--ink, #0c332b);

    /* UI Properties - restrained radii to match the theme's 3-8px language */
    --ato-radius-sm: 3px;
    --ato-radius-md: 6px;
    --ato-radius-lg: 10px;
    --ato-radius-xl: 14px;
    --ato-radius-full: 999px;

    /* Shadows keyed to --olive-dark (12,51,43) so they read green, not blue */
    --ato-shadow-sm: 0 2px 4px rgba(var(--shadow), 0.06);
    --ato-shadow-md: 0 12px 24px rgba(var(--shadow), 0.09);
    --ato-shadow-lg: 0 24px 48px rgba(var(--shadow), 0.13);
    --ato-shadow-hover: 0 32px 64px rgba(var(--shadow), 0.17);
    --ato-shadow-xl: 0 36px 72px rgba(var(--shadow), 0.21);

    --ato-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography - matches the theme: Albert Sans (display) + Google Sans
       (text). The theme's token NAMES are historical and no longer describe
       what they hold: --serif is the display face and both faces are
       sans-serifs. The literal fallbacks after the comma only apply when this
       CSS is loaded without the theme (e.g. a standalone render), so they must
       name fonts the site actually loads - a stale fallback here silently
       renders a face that is no longer requested from Google. */
    --ato-font-heading: var(--serif, 'Albert Sans', 'Segoe UI', Arial, sans-serif);
    --ato-font-body: var(--sans, 'Google Sans', 'Segoe UI', Arial, sans-serif);
    --ato-font-label: var(--sans, 'Google Sans', 'Segoe UI', Arial, sans-serif);

    /* Type scale - matches the theme's 16px base / 17px reading size */
    --ato-fs-base: 16px;
    --ato-fs-reading: 17px;
    --ato-fs-small: 13.5px;
    --ato-fs-label: 11.5px;

    /* Grid Defaults */
    --ato-grid-columns: 3;
    --ato-grid-gap: 28px;
}

/* Global Reset & Base */
.ato-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    font-family: var(--ato-font-body);
    color: var(--ato-text-main);
    font-size: var(--ato-fs-base);
    line-height: 1.65;
}

.ato-container * {
    box-sizing: border-box;
}

/* Grids */
.ato-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc((100% / var(--ato-grid-columns)) - var(--ato-grid-gap)), 1fr));
    gap: var(--ato-grid-gap);
}

/* The track minimum above is a percentage of the container, so it shrinks
   with the container and the grid can never drop a column: at a 288px
   container it still resolves to three 77px tracks and the cards inside are
   61px wide with their titles clipped. `.ato-mk .ato-tours-grid` already
   carries these breakpoints for the marketplace archive; every other surface
   that renders the same card grid (activity and destination taxonomies, the
   operator profile) reaches only this rule. Specificity is left at (0,1,0)
   deliberately: the marketplace rule and `.ato-guide-safaris-grid` both
   continue to win where they apply. */
@media (max-width: 1079px) {
    .ato-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .ato-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ato-grid-2,
.ato-tours-grid.ato-grid-2,
.ato-operators-grid.ato-grid-2,
.ato-taxonomy-grid.ato-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ato-grid-gap);
}

@media (max-width: 768px) {
    .ato-grid-2,
    .ato-tours-grid.ato-grid-2,
    .ato-operators-grid.ato-grid-2,
    .ato-taxonomy-grid.ato-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.ato-font-heading {
    font-family: var(--ato-font-heading);
    color: var(--ato-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Modern Buttons */
.ato-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--ato-radius-md);
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--ato-transition);
    border: none;
    cursor: pointer;
    font-size: 15px;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ato-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--ato-transition);
    z-index: -1;
}

.ato-button:hover::before {
    transform: translateX(0);
}

.ato-button:hover {
    transform: translateY(-3px);
    text-decoration: none !important;
}

.ato-button-primary {
    background: var(--ato-primary) !important;
    color: white !important;
    text-decoration: none !important;
}

.ato-button-primary:hover {
    background: var(--ato-primary-hover) !important;
    box-shadow: var(--ato-shadow-md);
    text-decoration: none !important;
}

.ato-button-outline {
    background: transparent;
    border: 2px solid var(--ato-primary);
    color: var(--ato-primary);
}

.ato-button-outline:hover {
    background: var(--ato-primary);
    color: white;
}

.ato-button-block {
    display: inline-flex;
    width: auto;
    min-width: 240px;
    margin: 0 auto;
}

/* --- Premium Tour Card (2026 Modern) --- */
.ato-tour-card {
    background: #ffffff;
    border-radius: var(--ato-radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--ato-border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.ato-tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(var(--shadow), 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-color: var(--ato-accent);
}

.ato-featured-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ato-primary) !important;
    color: white !important;
    padding: 5px 14px;
    transform: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    border-radius: var(--ato-radius-sm);
    right: auto;
}

.ato-tour-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--ato-border-color);
}

.ato-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ato-tour-card:hover .ato-tour-image img {
    transform: scale(1.04);
}

/* Card Overlays */
.ato-tour-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.ato-badge {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ato-primary);
    padding: 5px 12px;
    border-radius: var(--ato-radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ato-gallery-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(var(--shadow), 0.85);
    color: white;
    padding: 5px 10px;
    border-radius: var(--ato-radius-full);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Card Content */
.ato-tour-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Operator Branding */
.ato-tour-operator-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ato-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: white;
}

.ato-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ato-brand-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ato-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Card Title */
.ato-tour-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--ato-dark);
    font-weight: 700;
}

/* Title & Stats */
.ato-tour-header {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.3;
}

.ato-tour-title a {
    color: var(--ato-dark);
    text-decoration: none !important;
    transition: var(--ato-transition);
}

.ato-tour-title a:hover {
    color: var(--ato-primary);
}

.ato-tour-meta {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--ato-border-color);
}

.ato-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ato-text-muted);
    font-weight: 500;
}

.ato-meta-item .dashicons {
    color: var(--ato-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Card Footer */
.ato-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.ato-tour-price {
    display: flex;
    flex-direction: column;
}

.ato-tour-price .amount-prefix {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ato-text-muted);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.ato-tour-price .amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--ato-primary);
    font-family: var(--ato-font-heading);
}

/* --- Operator Card --- */
.ato-operator-card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: var(--ato-radius-lg);
    border: 1px solid var(--ato-border-color);
    text-align: center;
    transition: var(--ato-transition);
    position: relative;
}

.ato-operator-card:hover {
    box-shadow: 0 16px 32px rgba(var(--shadow), 0.08);
    border-color: var(--ato-accent);
    transform: translateY(-4px);
}

.ato-operator-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: var(--ato-shadow-md);
    border: 1px solid var(--ato-border-color);
}

.ato-operator-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.ato-badge-verified {
    background: var(--ato-primary);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--ato-radius-sm);
    text-transform: uppercase;
}

/* --- Single Tour Page --- */
.ato-single-tour-container {
    background: var(--ato-bg-light);
    padding: 60px 0;
}

.ato-tour-header {
    margin-bottom: 40px;
}

.ato-single-tour-container .ato-tour-header .ato-tour-title,
.ato-single-tour-container > .ato-tour-content > .ato-tour-title,
.ato-single-tour-container > .ato-tour-title {
    font-family: var(--ato-font-heading);
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 400;
    color: var(--ato-dark);
}

/* Section subheadings on the single tour page (Itinerary, Highlights, etc.) */
.ato-single-tour-container .ato-section-title,
.ato-single-tour-container h2,
.ato-single-tour-container .ato-tour-section h2 {
    font-family: var(--ato-font-heading);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 400;
    color: var(--ato-dark);
}

.ato-single-tour-container h3,
.ato-single-tour-container .ato-itinerary-day-title {
    font-family: var(--ato-font-heading);
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.25;
    font-weight: 400;
    color: var(--ato-dark);
}

/* Body copy bump on single tour page */
.ato-single-tour-container,
.ato-single-tour-container p,
.ato-single-tour-container .ato-tour-description,
.ato-single-tour-container li {
    font-family: var(--ato-font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ato-dark);
}

/* Overview / description vertical rhythm
   Theme + Elementor zero out p/h/ul margins, so we re-establish breathing
   room within the tour-description block specifically. */
.ato-single-tour-container .ato-tour-description > p,
.ato-single-tour-container .ato-tour-description > ul,
.ato-single-tour-container .ato-tour-description > ol,
.ato-single-tour-container .ato-tour-description > blockquote {
    margin: 0 0 1.1em 0;
}

.ato-single-tour-container .ato-tour-description > h2,
.ato-single-tour-container .ato-tour-description > h3,
.ato-single-tour-container .ato-tour-description > h4 {
    margin: 1.8em 0 0.6em 0;
}

.ato-single-tour-container .ato-tour-description > h2:first-child,
.ato-single-tour-container .ato-tour-description > h3:first-child,
.ato-single-tour-container .ato-tour-description > h4:first-child,
.ato-single-tour-container .ato-tour-description > p:first-child {
    margin-top: 0;
}

.ato-single-tour-container .ato-tour-description ul,
.ato-single-tour-container .ato-tour-description ol {
    padding-left: 1.4em;
    list-style: disc;
}

.ato-single-tour-container .ato-tour-description ol {
    list-style: decimal;
}

.ato-single-tour-container .ato-tour-description li {
    margin: 0.35em 0;
}

.ato-single-tour-container .ato-tour-description li::marker {
    color: var(--ato-primary);
}

/* Stacks of bold sub-headings separated only by <br> get spaced out so they
   read like distinct lines rather than a wall of bold text */
.ato-single-tour-container .ato-tour-description p > br {
    display: block;
    content: "";
    margin-top: 0.4em;
}

.ato-single-tour-container .ato-tour-description p b,
.ato-single-tour-container .ato-tour-description p strong {
    display: inline-block;
}

/* Related tour cards inside single tour - keep card-sized titles */
.ato-single-tour-container .ato-related-tours .ato-tour-title,
.ato-single-tour-container .ato-tour-card .ato-tour-title {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.ato-tour-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.ato-meta-pill {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: var(--ato-radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--ato-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ato-border-color);
    transition: var(--ato-transition);
}

.ato-meta-pill .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--ato-primary);
}

a.ato-meta-pill,
a.ato-meta-pill-link {
    text-decoration: none !important;
    color: var(--ato-primary);
}

a.ato-meta-pill:hover,
a.ato-meta-pill-link:hover {
    border-color: var(--ato-primary);
    color: var(--ato-accent);
    box-shadow: var(--ato-shadow-sm);
}

.ato-price-pill {
    background: var(--ato-primary) !important;
    color: white !important;
    border-color: var(--ato-primary) !important;
    font-weight: 700;
}

.ato-tour-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* Gallery Refinement */
.ato-tour-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 40px;
    border-radius: var(--ato-radius-xl);
    overflow: hidden;
    max-height: 420px;
}

.ato-gallery-main {
    aspect-ratio: 4 / 3;
    max-height: 420px;
    overflow: hidden;
}

.ato-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.ato-gallery-main:hover img {
    transform: scale(1.02);
}

.ato-gallery-thumbs {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    max-height: 420px;
}

.ato-gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    min-height: 0;
}

.ato-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.ato-gallery-thumb:hover img {
    transform: scale(1.04);
}

/* Sticky Booking Card */
.ato-book-card {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--ato-radius-lg);
    box-shadow: var(--ato-shadow-lg);
    border: 1px solid var(--ato-border-color);
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ato-price-amount {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--ato-primary);
    margin: 8px 0 24px;
    font-family: var(--ato-font-heading);
}

/* Timeline/Itinerary */
.ato-itinerary-timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 15px;
}

/* Inline form messages. The base rule below had lost its selector, so these
   declarations were landing on .ato-itinerary-timeline and cancelling its
   padding-left, which the ::before rail at left:15px depends on. */
.ato-message {
    padding: 10px 15px;
    border-radius: var(--ato-radius-md);
    font-size: 0.95rem;
}

.ato-message.ato-success {
    background: rgba(47, 125, 79, 0.10);
    color: var(--ato-success);
    border: 1px solid rgba(47, 125, 79, 0.28);
}

.ato-message.ato-error {
    background: rgba(168, 67, 58, 0.10);
    color: var(--ato-danger);
    border: 1px solid rgba(168, 67, 58, 0.28);
}

.ato-itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ato-border-color);
}

.ato-timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.ato-timeline-marker {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    background: var(--ato-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    border: 4px solid var(--ato-bg-light);
    box-shadow: 0 0 0 1px var(--ato-border-color);
}

.ato-timeline-content {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--ato-radius-md);
    border: 1px solid var(--ato-border-color);
    box-shadow: var(--ato-shadow-sm);
}

/* Filters Sidebar Styling */
.ato-sidebar-filters {
    background: #ffffff;
    border-radius: var(--ato-radius-lg);
    border: 1px solid var(--ato-border-color);
    overflow: hidden;
    box-shadow: var(--ato-shadow-sm);
}

.ato-filters-header {
    background: var(--ato-bg-white);
    padding: 24px;
    border-bottom: 1px solid var(--ato-border-color);
}

.ato-filter-section {
    border-bottom: 1px solid var(--ato-border-color);
}

.ato-filter-title {
    padding: 20px 24px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.ato-filter-content {
    padding: 0 24px 24px;
}

/* =========================================
   Taxonomy Pages & Grids (Premium Redesign)
   ========================================= */

/* Hero Section */
/*
 * The hero grows to fit its title. It used to be told `height: 60vh`, a FIXED height,
 * while the base rule gives it `padding: 100px 0 160px` and `overflow: hidden`.
 *
 * On a 800px tall laptop that is a 480px box holding 260px of padding and a heading
 * that runs to three lines. The content overflowed, and because the box is a flex
 * container with `align-items: center` the overflow was split equally top and bottom,
 * so `overflow: hidden` clipped the TOP OFF THE H1. The owner saw a decapitated title;
 * on a taller monitor the same page looked fine, which is what made it hard to catch.
 *
 * min-height lets it grow instead of clipping. `safe center` is the belt and braces:
 * if the content ever exceeds the box again it aligns to the start rather than
 * centring the overflow, so a title can never be cut off at the top again.
 */
.ato-taxonomy-page-v2 .ato-operator-hero {
    height: auto;
    min-height: max(400px, 60vh);
    display: flex;
    align-items: safe center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.ato-taxonomy-page-v2 .ato-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.center-breadcrumbs {
    justify-content: center;
    margin-bottom: 20px;
}

.center-breadcrumbs,
.center-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.ato-taxonomy-page-v2 .ato-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ato-taxonomy-page-v2 .ato-hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Centered Stats in Hero */
.ato-hero-stats-integrated.centered-stats {
    display: inline-flex;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ato-hero-stats-integrated.centered-stats .ato-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ato-hero-stats-integrated.centered-stats .ato-stat-val {
    font-size: 1.5rem;
    color: #fff;
}

.ato-hero-stats-integrated.centered-stats .ato-stat-lbl {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content Area */
.ato-taxonomy-main {
    padding: 60px 0;
    background: var(--ato-bg-light);
}

.ato-taxonomy-main .ato-section-header {
    margin-bottom: 40px;
    text-align: center;
}

.ato-subtitle {
    font-size: 1.1rem;
    color: var(--ato-text-muted);
    margin-top: 10px;
}

/* Taxonomy Grid System */
.ato-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.ato-taxonomy-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 380px;
    display: block;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.ato-taxonomy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ato-taxonomy-image {
    width: 100%;
    height: 100%;
}

.ato-taxonomy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.ato-taxonomy-card:hover .ato-taxonomy-image img {
    transform: scale(1.1);
}

/* Card Overlay */
.ato-taxonomy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 60%;
}

.ato-taxonomy-overlay h3 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ato-taxonomy-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.9;
}

.ato-taxonomy-meta .ato-count {
    font-size: 0.95rem;
    font-weight: 500;
}

.ato-taxonomy-meta .ato-arrow {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ato-taxonomy-card:hover .ato-taxonomy-meta .ato-arrow {
    background: #fff;
    color: var(--ato-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .ato-taxonomy-page-v2 .ato-hero-title {
        font-size: 2.5rem;
    }

    .ato-hero-stats-integrated.centered-stats {
        width: 100%;
        gap: 20px;
        padding: 15px;
    }

    .ato-taxonomy-grid {
        grid-template-columns: 1fr;
    }
}

.ato-taxonomy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ato-shadow-xl);
}

.ato-taxonomy-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ato-taxonomy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.4, 1);
}

.ato-taxonomy-card:hover .ato-taxonomy-image img {
    transform: scale(1.1);
}

.ato-taxonomy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.ato-taxonomy-overlay h3 {
    color: white;
    font-size: 20px;
    margin: 0 0 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ato-taxonomy-overlay .ato-count {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar Layout Logic */
.ato-tours-page-wrapper.with-sidebar,
.ato-operators-page-wrapper.with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.ato-sidebar-area {
    width: 100%;
}

.ato-sticky-sidebar {
    position: sticky;
    top: 30px;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ato-sticky-sidebar > .ato-sidebar-filters {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.ato-sticky-sidebar > .ato-sidebar-filters > .ato-filters-header {
    flex: 0 0 auto;
}

.ato-sticky-sidebar #ato-filters-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.ato-sticky-sidebar #ato-filters-form > .ato-filter-section,
.ato-sticky-sidebar #ato-filters-form > input[type="hidden"] {
    flex: 0 0 auto;
}

.ato-sticky-sidebar #ato-filters-form .ato-filters-footer {
    flex: 0 0 auto;
    margin-top: auto;
}

/* Scroll all filter sections (everything between header and footer)
   inside the form, so the Apply button stays pinned at the bottom. */
.ato-sticky-sidebar #ato-filters-form {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--ato-rule) transparent;
}

.ato-sticky-sidebar #ato-filters-form::-webkit-scrollbar {
    width: 8px;
}

.ato-sticky-sidebar #ato-filters-form::-webkit-scrollbar-track {
    background: transparent;
}

.ato-sticky-sidebar #ato-filters-form::-webkit-scrollbar-thumb {
    background: var(--ato-rule);
    border-radius: 4px;
    border: 2px solid #fff;
    background-clip: padding-box;
}

.ato-sticky-sidebar #ato-filters-form .ato-filters-footer {
    position: sticky;
    bottom: 0;
    background: var(--ato-bg-light);
    z-index: 2;
}

/* Keep count badges from sitting under the scrollbar, and ensure
   the first section's title isn't crowded against the dark header. */
.ato-sticky-sidebar #ato-filters-form > .ato-filter-section:first-of-type > .ato-filter-title {
    border-top: 0;
}

.ato-sticky-sidebar .ato-filter-list .count {
    margin-left: auto;
    flex-shrink: 0;
}

.ato-sticky-sidebar .ato-filter-list .label-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.ato-main-content {
    width: 100%;
    min-width: 0;
    /* Prevents grid blowout */
}

/* Premium Filter Styling (Enhanced) */
.ato-sidebar-filters {
    background: #ffffff;
    border-radius: var(--ato-radius-lg);
    border: 1px solid var(--ato-border-color);
    overflow: hidden;
    box-shadow: var(--ato-shadow-md);
    /* Increased shadow */
}

.ato-filters-header {
    background: var(--ato-bg-light);
    /* Softer header bg */
    padding: 24px;
    border-bottom: 1px solid var(--ato-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ato-filters-header h3 {
    font-size: 18px;
    margin: 0;
    color: var(--ato-dark);
}

.ato-reset-link {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--ato-transition);
    padding: 4px 12px;
    border-radius: var(--ato-radius-sm);
    font-weight: 600;
}

.ato-reset-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.ato-filter-group {
    padding: 24px;
    border-bottom: 1px solid var(--ato-border-color);
}

.ato-filter-group:last-child {
    border-bottom: none;
}

.ato-filter-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--ato-primary);
}

.ato-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ato-border-color);
    border-radius: var(--ato-radius-sm);
    font-family: var(--ato-font-body);
    font-size: 14px;
    transition: var(--ato-transition);
}

.ato-form-control:focus {
    border-color: var(--ato-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--shadow), 0.1);
}

/* Checkbox/Radio Styling */
.ato-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ato-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ato-dark);
    cursor: pointer;
    transition: var(--ato-transition);
}

.ato-checkbox-label:hover {
    color: var(--ato-primary);
}

.ato-checkbox-label input {
    accent-color: var(--ato-primary);
    width: 16px;
    height: 16px;
}

.ato-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ato-price-separator {
    color: var(--ato-text-muted);
    font-weight: 600;
}

.ato-checkbox {
    padding: 10px 0;
    transition: var(--ato-transition);
}

.ato-checkbox:hover {
    padding-left: 8px;
    color: var(--ato-primary);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .ato-tours-page-wrapper.with-sidebar {
        grid-template-columns: 1fr;
    }

    .ato-sidebar-area {
        margin-bottom: 32px;
    }

    .ato-tour-layout {
        grid-template-columns: 1fr;
    }

    .ato-book-card {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .ato-tour-title {
        font-size: 32px;
    }

    .ato-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ato-gallery-main {
        aspect-ratio: 16 / 10;
        max-height: 280px;
    }

    .ato-tour-gallery-grid {
        max-height: none;
    }

    .ato-gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
    }
}

/* --- Operator Profile V2 --- */
.ato-operator-profile-v2 {
    background: var(--ato-bg-light);
}

.ato-operator-hero {
    position: relative;
    padding: 100px 0 160px;
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

.ato-hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.ato-hero-logo {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 32px;
    border: 8px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: var(--ato-transition);
}

.ato-hero-logo:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.3);
}

.ato-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ato-breadcrumbs {
    font-size: 13px;
    margin-bottom: 24px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ato-breadcrumbs a {
    color: var(--ato-primary);
    text-decoration: none;
    transition: var(--ato-transition);
}

.ato-breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.ato-hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin: 0 0 40px;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #ffffff !important;

}

.ato-hero-meta-integrated {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ato-hero-badges {
    display: flex;
    gap: 12px;
}

.ato-hero-stats-integrated {
    display: flex;
    gap: 48px;
    padding: 24px 32px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--ato-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.ato-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: var(--ato-radius-sm);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.ato-stat-val {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--ato-font-heading);
    color: white;
    /* Fixed black text issue, was gold */
}

.ato-stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    font-weight: 700;
    color: white;
    /* Ensure white text */
}

/* Enquiry Card */
.ato-hero-side {
    position: relative;
    z-index: 10;
}

.ato-enquiry-card {
    background: white;
    padding: 48px;
    border-radius: var(--ato-radius-xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    color: var(--ato-dark);
    text-align: center;
    border: 1px solid var(--ato-border-color);
}

.ato-enquiry-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--ato-primary);
}

.ato-enquiry-card p {
    font-size: 15px;
    color: var(--ato-text-muted);
    margin-bottom: 32px;
}

.ato-button-modern {
    background: var(--ato-primary) !important;
    color: white !important;
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 800;
    width: 100%;
    border-radius: var(--ato-radius-lg);
    box-shadow: 0 10px 20px rgba(var(--shadow), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--ato-transition);
    text-decoration: none !important;
}

.ato-button-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--shadow), 0.5);
    background: var(--ato-danger);
}

.ato-button-modern .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Profile Tabs */
.ato-profile-tabs-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--ato-border-color);
    /* position: sticky; - Disabled per user request */
    /* top: 0; */
    /* z-index: 99; */
}

.ato-profile-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 40px;
}

.ato-profile-tabs li {
    padding: 24px 0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    color: var(--ato-text-muted);
    position: relative;
    transition: var(--ato-transition);
}

.ato-profile-tabs li:hover {
    color: var(--ato-primary);
}

.ato-profile-tabs li.active {
    color: var(--ato-primary);
}

.ato-profile-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ato-primary);
    /* Standardized Teal -> Secondary */
}

/* Tab Content */
.ato-tab-content-wrapper {
    padding: 60px 0 100px;
}

.ato-tab-content {
    display: none;
}

.ato-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ato-section-header {
    margin-bottom: 40px;
}

.ato-section-header h3 {
    font-size: 32px;
    letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 992px) {
    .ato-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ato-hero-side {
        order: -1;
        /* Move enquiry card up on tablets */
    }

    .ato-hero-title {
        font-size: 48px;
    }

    .ato-hero-stats-integrated {
        flex-wrap: wrap;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .ato-operator-hero {
        padding: 60px 0 80px;
        text-align: center;
    }

    .ato-hero-logo {
        margin: 0 auto 24px;
        width: 120px;
        height: 120px;
    }

    .ato-hero-badges,
    .ato-hero-stats-integrated {
        justify-content: center;
        margin: 0 auto;
    }

    .ato-hero-title {
        font-size: 36px;
    }

    .ato-profile-tabs {
        overflow-x: auto;
        gap: 24px;
    }

    .ato-profile-tabs li {
        white-space: nowrap;
    }
}

/* Bottom Inquiry Section */
.ato-bottom-inquiry-section {
    padding: 100px 0;
    background: var(--ato-bg-light);
    border-top: 1px solid var(--ato-border-color);
}

.ato-bottom-inquiry-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 80px 60px;
    border-radius: var(--ato-radius-xl);
    box-shadow: var(--ato-shadow-lg);
    border: 1px solid var(--ato-border-color);
}

.ato-bottom-inquiry-card h2 {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--ato-primary);
}

.ato-bottom-inquiry-card p {
    font-size: 18px;
    color: var(--ato-text-muted);
    margin-bottom: 40px;
}

.ato-button-large {
    padding: 24px 60px;
    font-size: 18px;
}

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

/* Tour Footer CTA */
.ato-tour-footer-cta {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--ato-border-color);
}

.ato-premium-cta-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--ato-bg-light) !important;
    padding: 40px 48px;
    border-radius: var(--ato-radius-xl);
    border: 2px solid var(--ato-border-color);
    text-align: left;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    transition: border-color 0.3s ease;
}

.ato-premium-cta-card:hover {
    border-color: var(--ato-primary);
}

.ato-premium-cta-card::before {
    display: none;
}

.ato-cta-visual {
    width: 64px;
    height: 64px;
    background: var(--ato-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ato-cta-visual .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.ato-cta-content {
    flex-grow: 1;
}

.ato-cta-content h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    color: var(--ato-dark) !important;
    font-family: var(--ato-font-heading);
}

.ato-cta-content p {
    font-size: 15px;
    color: var(--ato-text-muted);
    margin: 0;
    max-width: 460px;
    line-height: 1.5;
    opacity: 1;
}

.ato-cta-action {
    flex-shrink: 0;
}

.ato-cta-action .ato-button-modern {
    background: var(--ato-primary) !important;
    color: #ffffff !important;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    width: auto;
    white-space: nowrap;
    border-radius: var(--ato-radius-md);
    box-shadow: 0 4px 16px rgba(var(--shadow), 0.3);
}

.ato-cta-action .ato-button-modern:hover {
    background: var(--ato-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--shadow), 0.4);
}

.ato-cta-action .ato-button-modern .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

@media (max-width: 992px) {
    .ato-premium-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 32px;
        gap: 20px;
    }

    .ato-cta-content p {
        margin: 0 auto;
    }

    .ato-cta-action .ato-button-modern {
        width: 100%;
    }
}

/* Tour Includes / Excludes */
.ato-includes-excludes-section {
    margin-top: 40px;
}

.ato-ie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ato-ie-box {
    padding: 28px 32px;
    border-radius: var(--ato-radius-md);
    border: 1px solid var(--ato-border-color);
}

.ato-includes-box,
.ato-excludes-box {
    background: var(--ato-bg-light);
}

.ato-ie-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    color: var(--ato-dark);
}

.ato-ie-title .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ato-ie-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ato-ie-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ato-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ato-ie-list li:last-child {
    border-bottom: none;
}

.ato-ie-list li .dashicons {
    flex-shrink: 0;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

.ato-includes-list li .dashicons,
.ato-excludes-list li .dashicons {
    color: var(--ato-text-muted);
}

/* Tour Additional Notes */
.ato-tour-notes-section {
    margin-top: 24px;
}

.ato-notes-box {
    padding: 28px 32px;
    background: var(--ato-bg-light);
    border: 1px solid var(--ato-border-color);
    border-radius: var(--ato-radius-md);
}

.ato-notes-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: var(--ato-dark);
}

.ato-notes-title .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ato-notes-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ato-dark);
}

.ato-notes-content p:last-child {
    margin-bottom: 0;
}

/* Tour Form: Includes/Excludes Section */
.ato-includes-excludes-section .ato-form-group {
    margin-top: 24px;
}

.ato-includes-excludes-section .ato-form-group:first-child {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--ato-border-color);
}

.ato-includes-excludes-section label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
}

@media (max-width: 768px) {
    .ato-ie-grid {
        grid-template-columns: 1fr;
    }

    .ato-ie-box,
    .ato-notes-box {
        padding: 20px;
    }
}

/* Tour Disclaimer */
.ato-tour-disclaimer {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 28px 32px;
    background: var(--ato-bg-light);
    border: 1px solid var(--ato-border-color);
    border-left: 4px solid var(--ato-primary);
    border-radius: var(--ato-radius-md);
}

.ato-disclaimer-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 85, 75, 0.12);
    border-radius: 50%;
}

.ato-disclaimer-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--ato-primary);
}

.ato-disclaimer-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ato-dark);
    margin: 0 0 12px 0;
    font-family: var(--ato-font-heading);
}

.ato-disclaimer-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ato-disclaimer-content ul li {
    position: relative;
    padding-left: 20px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ato-text-muted);
    margin-bottom: 6px;
}

.ato-disclaimer-content ul li:last-child {
    margin-bottom: 0;
}

.ato-disclaimer-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--ato-primary);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .ato-tour-disclaimer {
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
    }
}

/* Booking Sidebar Branded */
.ato-book-operator {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ato-border-color);
}

.ato-book-operator .ato-op-prefix {
    font-size: 13px;
    color: var(--ato-text-muted);
    font-style: italic;
    margin-right: 4px;
}

.ato-book-operator .ato-op-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--ato-dark);
    text-decoration: none !important;
    transition: var(--ato-transition);
}

.ato-book-operator .ato-op-name:hover {
    color: var(--ato-primary);
    text-decoration: none !important;
}

/* CTA Inquiry Button (Booking Card) */
.ato-book-card .ato-request-quote {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 16px 32px !important;
    background: var(--ato-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--ato-radius-md) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: var(--ato-font-heading);
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(var(--shadow), 0.35);
    text-decoration: none !important;
    margin-top: 8px;
}

.ato-book-card .ato-request-quote:hover {
    background: var(--ato-primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--shadow), 0.45);
    text-decoration: none !important;
}

.ato-book-card .ato-request-quote:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--shadow), 0.3);
}

.ato-book-note {
    font-size: 13px;
    color: var(--ato-text-muted);
    margin-top: 12px;
    margin-bottom: 0;
    font-style: italic;
}

/* ==========================================================================
   Add Tour Form Redesign (Wizard Style)
   ========================================================================== */
.ato-tour-form-wizard {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 1. Progress Stepper */
.ato-wizard-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 40px;
}

.ato-wizard-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: var(--ato-border-color);
    z-index: 1;
}

/* -----------------------------------------------------------------------------
 * PREMIUM WIZARD & FORM STYLES
 * -------------------------------------------------------------------------- */

/* 1. Progress Stepper */
.ato-wizard-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px;
}

.ato-wizard-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--ato-border-color);
    z-index: 1;
}

.ato-stepper-item {
    position: relative;
    z-index: 2;
    text-align: center;
    cursor: default;
    flex: 1;
}

.ato-step-number {
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid var(--ato-border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 700;
    color: var(--ato-text-muted);
    font-family: var(--ato-font-heading);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ato-step-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ato-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Stepper States */
.ato-stepper-item.active .ato-step-number {
    background: var(--ato-primary);
    border-color: var(--ato-primary);
    color: white;
    box-shadow: 0 0 0 5px rgba(168, 67, 58, 0.15);
    /* Brand Red Glow */
    transform: scale(1.1);
}

.ato-stepper-item.active .ato-step-label {
    color: var(--ato-primary);
}

.ato-stepper-item.completed .ato-step-number {
    background: var(--ato-primary);
    border-color: var(--ato-primary);
    color: white;
}

.ato-stepper-item.completed .ato-step-label {
    color: var(--ato-primary);
}

/* 2. Step Cards (Wizard Body) */
.ato-wizard-steps {
    position: relative;
}

.ato-step {
    display: none;
    background: white;
    border-radius: var(--ato-radius-xl);
    box-shadow: var(--ato-shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 50px;
    animation: atoSlideUp 0.4s ease-out;
}

.ato-step.active {
    display: block;
}

@keyframes atoSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ato-step-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--ato-border-color);
    text-align: center;
}

.ato-step-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--ato-primary);
}

.ato-step-header p {
    margin: 0;
    color: var(--ato-text-muted);
    font-size: 16px;
}

/* 3. Modern Form Controls */
.ato-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.ato-form-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.ato-form-group.full-width {
    grid-column: span 2;
}

.ato-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ato-primary);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.ato-form-group input[type="text"],
.ato-form-group input[type="number"],
.ato-form-group input[type="email"],
.ato-form-group input[type="url"],
.ato-form-group select,
.ato-form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--ato-border-color);
    border-radius: var(--ato-radius-md);
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--ato-bg-white);
    color: var(--ato-dark);
    font-family: var(--ato-font-body);
}

.ato-form-group input:focus,
.ato-form-group select:focus,
.ato-form-group textarea:focus {
    outline: none;
    border-color: var(--ato-primary);
    background: white;
    box-shadow: 0 4px 12px rgba(168, 67, 58, 0.08);
    /* Red shadow */
}

/* 4. Itinerary Builder (Premium Repeater) */
.ato-modern-repeater {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.ato-itinerary-day {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: var(--ato-radius-lg);
    padding: 30px;
    border: 1px solid var(--ato-border-color);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--ato-shadow-sm);
}

.ato-itinerary-day:hover {
    border-color: var(--ato-accent);
    transform: translateX(5px);
    box-shadow: var(--ato-shadow-md);
}

.ato-day-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 5px;
}

.ato-day-badge {
    background: var(--ato-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--ato-radius-md);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 90px;
    text-align: center;
}

.ato-remove-day {
    background: transparent;
    color: var(--ato-rule);
    border: 2px solid var(--ato-border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.ato-remove-day:hover {
    background: rgba(168, 67, 58, 0.08);
    color: var(--ato-primary);
    border-color: rgba(168, 67, 58, 0.08);
}

.ato-day-content {
    flex-grow: 1;
    display: grid;
    gap: 20px;
}

/* The day's prose only. The container itself is a grid that carries the day's layout,
   so constraining it would break the itinerary rather than the line length. */
.ato-day-content p {
    max-width: var(--ato-measure, 700px);
}

.ato-repeater-actions {
    text-align: center;
    padding-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {

    .ato-form-grid,
    .ato-form-grid.three-col {
        grid-template-columns: 1fr;
    }

    .ato-form-group.full-width {
        grid-column: span 1;
    }

    .ato-wizard-stepper::before {
        display: none;
    }

    .ato-stepper-item {
        flex: 0 0 100%;
        margin-bottom: 10px;
        display: none;
    }

    .ato-stepper-item.active {
        display: block;
    }

    .ato-itinerary-day {
        flex-direction: column;
    }

    .ato-day-side {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
}

/* 5. Media Section */
.ato-image-upload-hero {
    background: var(--ato-bg-white);
    padding: 30px;
    border-radius: var(--ato-radius-xl);
    border: 2px dashed var(--ato-border-color);
    text-align: center;
}

.ato-large-preview {
    width: 100%;
    height: 200px;
    background: #eee;
    border-radius: var(--ato-radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ato-large-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ato-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--ato-text-muted);
}

.ato-upload-placeholder .dashicons {
    font-size: 48px;
    height: 48px;
    width: 48px;
}

.ato-modern-gallery-upload {
    background: white;
    border: 1px solid var(--ato-border-color);
    border-radius: var(--ato-radius-lg);
    padding: 20px;
}

.ato-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.ato-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--ato-radius-md);
    overflow: hidden;
    border: 1px solid var(--ato-border-color);
}

.ato-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ato-remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.ato-remove-image:hover {
    background: var(--ato-primary);
}

/* 6. Footer & Actions */
.ato-step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--ato-border-color);
}

.ato-step-footer:only-child {
    justify-content: flex-end;
}

/* Error States */
.ato-error {
    border-color: var(--ato-primary) !important;
    background: var(--ato-bg-white) !important;
}

/* Responsive */
@media (max-width: 768px) {

    .ato-form-grid,
    .ato-form-grid.three-col {
        grid-template-columns: 1fr;
    }

    .ato-form-group.full-width {
        grid-column: span 1;
    }

    .ato-wizard-stepper {
        padding: 0;
    }

    .ato-step-label {
        display: none;
    }

    .ato-wizard-stepper::before {
        left: 40px;
        right: 40px;
    }

    .ato-itinerary-day {
        flex-direction: column;
        gap: 15px;
    }

    .ato-day-side {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .ato-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   7. Premium Dashboard Polish (Glassmorphism)
   ========================================= */

.ato-dashboard {
    background: var(--ato-bg-light);
    border-radius: var(--ato-radius-xl);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.ato-dashboard-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.ato-dashboard-header h1 {
    font-size: 32px;
    color: var(--ato-primary);
    margin-bottom: 10px;
}

/* Glassy Stats Cards */
.ato-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.ato-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--ato-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ato-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--ato-accent);
}

.ato-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--ato-primary);
    font-family: var(--ato-font-heading);
    line-height: 1;
}

.ato-stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ato-text-muted);
    font-weight: 600;
}

.ato-stat-card .ato-stat-value small {
    font-size: 14px;
    font-weight: 500;
    color: var(--ato-text-muted);
}

.ato-stat-card .ato-stat-value .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.ato-stat-verified .ato-stat-value .dashicons {
    color: var(--ato-success);
}

.ato-stat-unverified .ato-stat-value .dashicons {
    color: var(--ato-secondary);
}

/* Profile Completeness Bar */
.ato-profile-completeness {
    background: white;
    border: 1px solid var(--ato-border-color);
    border-radius: var(--ato-radius-lg);
    padding: 20px 24px;
    margin-top: 24px;
    box-shadow: var(--ato-shadow-sm);
}

.ato-completeness-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.ato-completeness-header .dashicons {
    color: var(--ato-primary);
}

.ato-completeness-pct {
    margin-left: auto;
    font-weight: 700;
    color: var(--ato-primary);
    font-size: 16px;
}

.ato-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.ato-progress-fill {
    height: 100%;
    background: var(--ato-primary);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.ato-completeness-tips {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ato-text-muted);
}

.ato-completeness-tips p {
    margin: 0 0 6px;
}

.ato-completeness-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ato-completeness-tips li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 0;
}

.ato-completeness-tips li .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--ato-primary);
}

/* Tab Count Badge */
.ato-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--ato-primary);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    margin-left: 6px;
}

.ato-avg-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--ato-primary);
    font-family: var(--ato-font-heading);
    line-height: 1;
}

.ato-avg-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Modern Segemented Tabs */
.ato-dashboard-tabs {
    margin-top: 40px;
}

.ato-tabs-nav {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px;
    border-radius: 50px;
    /* Pill shape */
    list-style: none;
    margin: 0 0 32px 0;
    position: relative;
}

.ato-tabs-nav li {
    padding: 10px 32px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ato-text-muted);
    transition: all 0.3s ease;
}

.ato-tabs-nav li:hover {
    color: var(--ato-primary);
}

.ato-tabs-nav li.active {
    background: white;
    color: var(--ato-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Polished Tour List Item */
.ato-tours-list {
    display: grid;
    gap: 20px;
}

.ato-list-item {
    display: flex;
    background: white;
    border-radius: var(--ato-radius-md);
    overflow: hidden;
    border: 1px solid var(--ato-border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--ato-shadow-sm);
}

.ato-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--ato-shadow-md);
    border-color: var(--ato-primary);
}

.ato-item-image {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
}

.ato-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ato-item-content {
    flex-grow: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ato-item-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.ato-item-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--ato-text-muted);
    align-items: center;
}

.ato-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ato-status-badge.publish {
    background: #d1fae5;
    color: #065f46;
}

.ato-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.ato-item-actions {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ato-bg-white);
    border-left: 1px solid var(--ato-border-color);
}

.ato-button-small {
    padding: 10px 20px;
    font-size: 13px;
    min-width: auto;
    border-radius: var(--ato-radius-sm);
    text-decoration: none !important;
}

.ato-button-danger {
    background: #fee2e2;
    color: var(--ato-primary);
}

.ato-button-danger:hover {
    background: #fecaca;
    color: var(--ato-primary);
}

/* Empty State Polish */
.ato-empty-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: var(--ato-radius-lg);
    border: 2px dashed var(--ato-border-color);
}

/* -------------------------------------------------------------------------
   8. Premium Inquiry Modal
   ------------------------------------------------------------------------- */
.ato-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(var(--shadow), 0.6);
    /* Dark Brown tint */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: atoFadeIn 0.3s ease;
}

.ato-modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 600px;
    border-radius: var(--ato-radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: atoSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ato-modal-md {
    max-width: 650px;
}

.ato-modal-xl {
    max-width: 1000px;
    width: 95%;
}

@media (max-width: 768px) {
    .ato-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .ato-form-grid,
    .ato-form-grid.three-col {
        grid-template-columns: 1fr;
    }

    .ato-wizard-stepper {
        padding: 0 10px;
    }

    .ato-wizard-stepper::before {
        left: 20px;
        right: 20px;
    }
}

.ato-close-modal {
    color: var(--ato-text-muted);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--ato-transition);
    z-index: 10;
    line-height: 1;
}

.ato-close-modal:hover {
    color: var(--ato-primary);
    transform: rotate(90deg);
}

.ato-inquiry-header {
    background: var(--ato-bg-light);
    padding: 30px 40px;
    border-bottom: 1px solid var(--ato-border-color);
    text-align: center;
}

.ato-inquiry-header h3 {
    margin: 0 0 5px 0;
    color: var(--ato-primary);
    font-family: var(--ato-font-heading);
    font-size: 24px;
    font-weight: 700;
}

.ato-inquiry-subtitle {
    margin: 0;
    color: var(--ato-text-muted);
    font-size: 15px;
}

#ato-inquiry-form {
    padding: 30px 40px;
}

.ato-form-grid {
    display: grid;
    gap: 20px;
}

.ato-form-group {
    margin-bottom: 20px;
}

.ato-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ato-primary);
}

.ato-form-group input,
.ato-form-group textarea,
.ato-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--ato-border-color);
    border-radius: var(--ato-radius-sm);
    font-family: var(--ato-font-body);
    font-size: 15px;
    color: var(--ato-dark);
    background: #fff;
    transition: var(--ato-transition);
}

.ato-form-group input:focus,
.ato-form-group textarea:focus {
    outline: none;
    border-color: var(--ato-primary);
    box-shadow: 0 0 0 4px rgba(168, 67, 58, 0.1);
    /* Primary color fade */
}

.ato-form-note {
    font-size: 13px;
    color: var(--ato-text-muted);
    text-align: center;
    margin-top: 15px;
}

/* Photo Ownership Disclaimer */
.ato-photo-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e1;
    border: 1px solid var(--ato-secondary-light);
    border-left: 4px solid var(--ato-secondary);
    border-radius: var(--ato-radius-md, 8px);
    padding: 16px 18px;
    margin: 15px 0 20px;
    font-size: 13px;
    line-height: 1.6;
}

.ato-photo-disclaimer .ato-disclaimer-icon {
    flex-shrink: 0;
    color: var(--ato-secondary-hover);
    margin-top: 1px;
}

.ato-photo-disclaimer .ato-disclaimer-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.ato-photo-disclaimer .ato-disclaimer-text strong {
    display: block;
    font-size: 14px;
    color: #7a5a00;
    margin-bottom: 4px;
}

.ato-photo-disclaimer .ato-disclaimer-text p {
    margin: 0;
    color: #5d4e00;
}

/* Animations */
@keyframes atoFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes atoSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Success Message Styling */
.ato-message-box.success {
    background-color: rgba(47, 125, 79, 0.1);
    color: var(--ato-success);
    border: 1px solid rgba(47, 125, 79, 0.2);
    text-align: center;
}

.ato-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 768px) {

}

/* --- New Operator Filter Toolbar --- */
.ato-operator-toolbar {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--ato-radius-lg);
    border: 1px solid var(--ato-border-color);
    box-shadow: var(--ato-shadow-sm);
    margin-bottom: 40px;
}

.ato-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.ato-toolbar-search {
    flex: 2;
    min-width: 250px;
    position: relative;
}

.ato-toolbar-search input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: var(--ato-radius-full);
    border: 1px solid var(--ato-border-color);
    font-size: 15px;
    transition: var(--ato-transition);
    background: var(--ato-bg-light);
}

.ato-toolbar-search input:focus {
    background: white;
    border-color: var(--ato-primary);
    box-shadow: 0 0 0 3px rgba(18, 85, 75, 0.15);
    outline: none;
}

.ato-toolbar-search .dashicons {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ato-text-muted);
    font-size: 20px;
}

.ato-toolbar-filters {
    display: flex;
    gap: 16px;
    flex: 3;
    flex-wrap: wrap;
}

.ato-toolbar-select {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.ato-toolbar-select select {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border-radius: var(--ato-radius-full);
    border: 1px solid var(--ato-border-color);
    font-size: 14px;
    background-color: var(--ato-bg-light);
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.ato-toolbar-select select:focus {
    border-color: var(--ato-primary);
    background-color: white;
    outline: none;
}

.ato-select-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ato-text-muted);
    z-index: 1;
}

/* --- Modern Operator Card --- */
.ato-operator-card-modern {
    background: #ffffff;
    border-radius: var(--ato-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ato-border-color);
    box-shadow: var(--ato-shadow-sm);
    transition: var(--ato-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ato-operator-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--ato-shadow-lg);
    border-color: var(--ato-accent);
}

.ato-card-cover {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--ato-border-color);
}

.ato-card-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.ato-cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ato-verified-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ato-success);
    padding: 6px 12px;
    border-radius: var(--ato-radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ato-card-body {
    padding: 24px;
    padding-top: 0;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ato-card-avatar {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: -40px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.ato-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ato-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--ato-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    font-family: var(--ato-font-heading);
}

.ato-card-main {
    flex-grow: 1;
}

.ato-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    /* Reduced from 20px */
    line-height: 1.3;
}

.ato-card-title a {
    color: var(--ato-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.ato-card-title a:hover {
    color: var(--ato-primary);
}

.ato-card-location {
    font-size: 14px;
    color: var(--ato-text-muted);
    display: flex;
    gap: 6px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.ato-card-location .dashicons {
    color: var(--ato-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ato-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--ato-bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.ato-card-stat {
    display: flex;
    flex-direction: column;
}

.ato-card-stat .count {
    font-size: 18px;
    font-weight: 800;
    color: var(--ato-primary);
    line-height: 1;
}

.ato-card-stat .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ato-text-muted);
    font-weight: 600;
}

.ato-button-sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .ato-operators-grid {
        grid-template-columns: 1fr;
    }

    .ato-toolbar-form {
        flex-direction: column;
        align-items: stretch;
    }

    /* --- Tours & Operators Page Sidebar Layout --- */
    .ato-tours-page-wrapper.with-sidebar,
    .ato-operators-page-wrapper.with-sidebar {
        display: block;
        /* Stack sidebar and content vertically */
        gap: 30px;
        margin-bottom: 40px;
    }

    .ato-sidebar-area {
        width: 100%;
    }

    .ato-sticky-sidebar {
        position: sticky;
        top: 30px;
        transition: top 0.3s;
    }

    .ato-main-content {
        min-width: 0;
        /* Prevent grid blowout */
    }

    /* Sidebar Filters Refinement */
    .ato-sidebar-filters {
        background: #ffffff;
        border-radius: var(--ato-radius-lg);
        border: 1px solid var(--ato-border-color);
        box-shadow: var(--ato-shadow-sm);
        overflow: hidden;
    }

    .ato-filters-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid var(--ato-border-color);
        background: var(--ato-bg-light);
    }

    .ato-filters-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
    }

    .ato-reset-link {
        background: none;
        border: 1px solid var(--ato-border-color);
        color: var(--ato-primary);
        font-size: 12px;
        cursor: pointer;
        padding: 4px 12px;
        font-weight: 600;
        border-radius: var(--ato-radius-sm);
        text-decoration: none;
    }

    .ato-reset-link:hover {
        background: var(--ato-bg-light);
        border-color: var(--ato-primary);
        text-decoration: none;
    }

    /* Range Inputs */
    .ato-range-inputs.dual {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ato-range-inputs input {
        width: 100%;
        padding: 10px;
        border: 1px solid var(--ato-border-color);
        border-radius: var(--ato-radius-sm);
        font-size: 14px;
        text-align: center;
    }

    .ato-range-inputs .sep {
        color: var(--ato-text-muted);
    }

    /* Empty State */
    .ato-no-results-box {
        text-align: center;
        padding: 80px 40px;
        background: #ffffff;
        border-radius: var(--ato-radius-lg);
        border: 1px dashed var(--ato-border-color);
        margin-top: 20px;
    }

    .ato-no-results-box .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
        color: var(--ato-primary);
        margin-bottom: 24px;
    }

    .ato-no-results-box h3 {
        margin: 0 0 12px;
        font-size: 24px;
    }

    .ato-no-results-box p {
        color: var(--ato-text-muted);
        margin-bottom: 32px;
    }

    /* Pagination */
    .ato-pagination {
        margin-top: 60px;
        display: flex;
        justify-content: center;
    }

    .ato-pagination ul,
    .ato-pagination div {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ato-pagination li {
        margin: 0;
    }

    .ato-pagination a,
    .ato-pagination span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        /* Circle pagination */
        background: #ffffff;
        color: var(--ato-dark);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        transition: var(--ato-transition);
        border: 1px solid var(--ato-border-color);
        box-shadow: var(--ato-shadow-sm);
    }

    .ato-pagination a:hover,
    .ato-pagination span.current {
        background: var(--ato-primary);
        color: white;
        border-color: var(--ato-primary);
        transform: translateY(-3px);
        box-shadow: var(--ato-shadow-md);
    }

    .ato-pagination .prev,
    .ato-pagination .next {
        width: auto;
        padding: 0 20px;
        border-radius: 20px;
        /* Pill for prev/next */
    }

    /* Responsive Layout */
    @media (max-width: 1024px) {

        .ato-tours-page-wrapper.with-sidebar,
        .ato-operators-page-wrapper.with-sidebar {
            grid-template-columns: 1fr;
        }

        .ato-sidebar-area {
            margin-bottom: 32px;
        }

        .ato-sticky-sidebar {
            position: static;
        }

    }

    /* --- Comment Form Styling --- */
    #respond {
        background: #fff;
        padding: 20px;
        border-radius: var(--ato-radius-lg);
    }

    .comment-reply-title {
        font-size: 20px;
        margin-bottom: 20px;
        display: block;
        color: var(--ato-primary);
    }

    .comment-notes,
    .logged-in-as {
        font-size: 13px;
        color: var(--ato-text-muted);
        margin-bottom: 20px;
    }

    .comment-form p {
        margin-bottom: 20px;
    }

    .comment-form label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
        color: var(--ato-dark);
        text-transform: uppercase;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea,
    .comment-form select {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--ato-border-color);
        border-radius: var(--ato-radius-sm);
        font-size: 15px;
        color: var(--ato-dark);
        transition: all 0.2s;
        background: var(--ato-bg-white);
    }

    .comment-form input:focus,
    .comment-form textarea:focus,
    .comment-form select:focus {
        outline: none;
        border-color: var(--ato-primary);
        box-shadow: 0 0 0 4px rgba(168, 67, 58, 0.1);
        background: #fff;
    }

    .comment-form-cookies-consent {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .comment-form-cookies-consent input {
        width: auto;
    }

    .comment-form-cookies-consent label {
        margin: 0;
        text-transform: none;
        font-weight: 400;
    }

    .form-submit {
        margin-top: 30px;
    }
}

/* Pagination Styling */
.ato-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.ato-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ato-pagination .page-numbers li {
    margin: 0;
}

.ato-pagination .page-numbers a,
.ato-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
    padding: 0 16px;
    background: white;
    border: 1px solid var(--ato-border-color);
    border-radius: var(--ato-radius-sm);
    color: var(--ato-dark);
    font-weight: 700;
    text-decoration: none;
    transition: var(--ato-transition);
}

.ato-pagination .page-numbers a:hover,
.ato-pagination .page-numbers span.current {
    background: var(--ato-primary);
    color: white;
    border-color: var(--ato-primary);
}

/* --- Operators Grid (1-column for horizontal cards) --- */
.ato-operators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ato-grid-gap);
}

/* --- New Operator Horizontal Card --- */
.ato-operator-card-horizontal {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--ato-radius-lg);
    border: 1px solid var(--ato-border-color);
    margin-bottom: 24px;
    /* Space between cards */
    overflow: hidden;
    transition: var(--ato-transition);
    box-shadow: var(--ato-shadow-sm);
}

.ato-operator-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: var(--ato-shadow-lg);
    border-color: var(--ato-accent);
}

/* Premium Styling */
.ato-operator-card-horizontal.ato-card-premium {
    border-left: 4px solid var(--ato-primary);
    background: var(--ato-bg-white);
}

.ato-card-top {
    display: flex;
    gap: 24px;
    padding: 24px;
}

/* 1. Image Section */
.ato-card-image {
    width: 260px;
    min-width: 260px;
    height: 190px;
    background-size: cover;
    background-position: center;
    border-radius: var(--ato-radius-md);
    position: relative;
    overflow: hidden;
}

.ato-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.ato-badge-verified-corner {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ato-primary);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

/* Featured Operator Card */
.ato-operator-card-horizontal.ato-card-featured {
    border: 2px solid var(--ato-primary);
    box-shadow: 0 4px 20px rgba(176, 141, 79, 0.15);
}

.ato-operator-card-horizontal.ato-card-featured .ato-card-image .ato-featured-ribbon {
    top: 15px;
    right: -30px;
}

/* Featured Tour Card */
.ato-tour-card.ato-featured {
    border: 2px solid var(--ato-primary);
    box-shadow: 0 4px 20px rgba(176, 141, 79, 0.15);
}

/* Disabled button */
.ato-button.ato-button-disabled {
    background: #ccc;
    color: #777;
    cursor: not-allowed;
    pointer-events: none;
    padding: 10px 20px;
    border-radius: var(--ato-radius-md);
    font-size: 14px;
    font-weight: 600;
}

/* 2. Details Section */
.ato-card-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ato-card-title {
    font-size: 18px;
    /* Reduced from 22px */
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ato-card-title a {
    text-decoration: none;
    color: var(--ato-dark);
    transition: color 0.2s;
}

.ato-card-title a:hover {
    color: var(--ato-primary);
}

.ato-card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ato-dark);
}

.ato-meta-label {
    font-weight: 600;
    color: var(--ato-text-muted);
}

.ato-meta-value {
    font-weight: 500;
}

.ato-destinations-text {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Branding Section */
.ato-card-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 180px;
    padding-left: 24px;
    border-left: 1px dashed var(--ato-border-color);
}

.ato-operator-logo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--ato-border-color);
    padding: 6px;
    background: white;
    box-shadow: var(--ato-shadow-sm);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ato-card-branding .ato-operator-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
}

/* 4. Tours Preview Section (Bottom) */
.ato-card-tours-preview {
    background: var(--ato-bg-white);
    border-top: 1px solid var(--ato-border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ato-preview-tours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.ato-preview-tours-list li {
    margin: 0;
    font-size: 13px;
    position: relative;
    padding-left: 14px;
}

.ato-preview-tours-list li::before {
    content: "•";
    color: var(--ato-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.ato-preview-tours-list a {
    text-decoration: none !important;
    color: var(--ato-dark) !important;
    transition: color 0.2s;
}

.ato-preview-tours-list a:hover {
    color: var(--ato-primary) !important;
    text-decoration: none !important;
}

.ato-preview-tours-list .tour-meta {
    color: var(--ato-text-muted);
    font-size: 12px;
    margin-left: 4px;
}

.ato-preview-footer {
    flex-shrink: 0;
    margin-left: 16px;
}

.ato-view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--ato-dark) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 10px 20px;
    background: var(--ato-accent) !important;
    border: none;
    border-radius: var(--ato-radius-md);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(226, 186, 117, 0.3);
}

.ato-view-all-link:hover {
    background: var(--ato-secondary) !important;
    color: var(--ato-dark) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 186, 117, 0.4);
}

.ato-view-all-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--ato-dark) !important;
    transition: transform 0.2s ease;
}

.ato-view-all-link:hover .dashicons {
    transform: translateX(3px);
    color: #ffffff !important;
}

/* --- Responsive Card --- */
@media (max-width: 768px) {
    .ato-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .ato-card-image {
        width: 100%;
        height: 200px;
    }

    .ato-card-branding {
        flex-direction: row;
        width: 100%;
        border-left: none;
        border-top: 1px dashed var(--ato-border-color);
        padding-top: 16px;
        padding-left: 0;
        justify-content: space-between;
    }

    .ato-operator-logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .ato-card-tours-preview {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .ato-preview-tours-list {
        flex-direction: column;
        gap: 8px;
    }

    .ato-preview-tours-list li:nth-child(n+2) {
        display: none;
    }
}

/* --- Advanced Filters (Sidebar) CSS - Compact Design --- */

/* Compact Filter Container */
.ato-sidebar-filters.ato-filters-compact {
    font-size: 13px;
}

.ato-sidebar-filters.ato-filters-compact .ato-filters-header {
    padding: 14px 16px;
    background: var(--ato-dark) !important;
    border-bottom: none;
}

.ato-sidebar-filters.ato-filters-compact .ato-filters-header h3 {
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ato-sidebar-filters.ato-filters-compact .ato-filters-header h3 .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ato-sidebar-filters.ato-filters-compact .ato-reset-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 3px 10px;
    border-radius: var(--ato-radius-sm);
    text-decoration: none;
}

.ato-sidebar-filters.ato-filters-compact .ato-reset-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Compact Filter Sections */
.ato-sidebar-filters.ato-filters-compact .ato-filter-section {
    border-bottom: 1px solid var(--ato-border-color);
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-section:last-of-type {
    border-bottom: none;
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ato-text-muted);
    margin: 0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--ato-bg-light);
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-title:hover {
    background: var(--ato-bg-light);
    color: var(--ato-primary);
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-title .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-section.expanded .ato-filter-title .dashicons {
    transform: rotate(180deg);
}

/* Compact Filter Content */
.ato-sidebar-filters.ato-filters-compact .ato-filter-content {
    padding: 10px 16px 14px;
}

/* Compact Range Inputs */
.ato-sidebar-filters.ato-filters-compact .ato-range-inputs.dual {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ato-sidebar-filters.ato-filters-compact .ato-range-inputs input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    border: 1px solid var(--ato-border-color);
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s;
    box-sizing: border-box;
}

.ato-sidebar-filters.ato-filters-compact .ato-range-inputs input:focus {
    border-color: var(--ato-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(168, 67, 58, 0.1);
}

.ato-sidebar-filters.ato-filters-compact .ato-range-inputs .sep {
    color: var(--ato-text-muted);
    font-size: 12px;
}

/* Compact Checkbox List */
.ato-sidebar-filters.ato-filters-compact .ato-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-list.default-show-5 {
    max-height: 145px;
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-list li {
    margin: 0;
}

.ato-sidebar-filters.ato-filters-compact .ato-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 12px;
    color: var(--ato-dark);
    transition: all 0.15s;
}

.ato-sidebar-filters.ato-filters-compact .ato-checkbox:hover {
    color: var(--ato-primary);
    padding-left: 4px;
}

.ato-sidebar-filters.ato-filters-compact .ato-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--ato-primary);
    margin: 0;
    flex-shrink: 0;
}

.ato-sidebar-filters.ato-filters-compact .ato-checkbox .checkmark {
    display: none;
}

.ato-sidebar-filters.ato-filters-compact .ato-checkbox .label-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ato-sidebar-filters.ato-filters-compact .ato-checkbox .count {
    font-size: 11px;
    color: var(--ato-text-muted);
    background: var(--ato-border-color);
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Show More Button */
.ato-sidebar-filters.ato-filters-compact .ato-show-more {
    background: none;
    border: none;
    color: var(--ato-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 0;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s;
}

.ato-sidebar-filters.ato-filters-compact .ato-show-more:hover {
    color: var(--ato-accent);
}

/* Compact Footer */
.ato-sidebar-filters.ato-filters-compact .ato-filters-footer {
    padding: 14px 16px;
    background: var(--ato-bg-light);
    border-top: 1px solid var(--ato-border-color);
}

.ato-sidebar-filters.ato-filters-compact .ato-filters-footer .ato-button {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
}

/* Custom Scrollbar for Filter List */
.ato-sidebar-filters.ato-filters-compact .ato-filter-list::-webkit-scrollbar {
    width: 4px;
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-list::-webkit-scrollbar-track {
    background: var(--ato-bg-light);
    border-radius: 2px;
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.ato-sidebar-filters.ato-filters-compact .ato-filter-list::-webkit-scrollbar-thumb:hover {
    background: var(--ato-primary);
}

/* Legacy Filter Styles (fallback) */
.ato-sidebar-filters .ato-filter-group {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ato-border-color);
}

.ato-sidebar-filters .ato-filter-group:last-child {
    border-bottom: none;
}

.ato-filter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ato-primary);
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.ato-search-input-wrapper {
    position: relative;
}

.ato-search-input-wrapper .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ato-text-muted);
}

.ato-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ato-border-color);
    border-radius: var(--ato-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--ato-dark);
    background: var(--ato-bg-white);
    transition: all 0.2s;
}

.ato-search-input-wrapper .ato-form-control {
    padding-left: 36px;
    /* Space for icon */
}

.ato-form-control:focus {
    outline: none;
    border-color: var(--ato-primary);
    box-shadow: 0 0 0 3px rgba(168, 67, 58, 0.1);
    background: white;
}

/* Price Inputs */
.ato-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ato-price-separator {
    color: var(--ato-text-muted);
    font-weight: bold;
}

.ato-price-input {
    width: 100%;
    text-align: center;
}

/* Checkbox/Radio List */
.ato-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ato-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    /* Reduced from 14px */
    color: var(--ato-dark);
    cursor: pointer;
    transition: color 0.2s;
}

.ato-checkbox-label:hover {
    color: var(--ato-primary);
}

.ato-checkbox-label input[type="radio"],
.ato-checkbox-label input[type="checkbox"] {
    accent-color: var(--ato-primary);
    /* Modern browsers */
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Actions */
.ato-filter-actions {
    padding: 24px;
    background: var(--ato-bg-white);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#ato-reset-filters {
    color: var(--ato-text-muted);
    font-size: 13px;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--ato-border-color);
    border-radius: var(--ato-radius-sm);
    background: #ffffff;
    transition: var(--ato-transition);
    cursor: pointer;
}

#ato-reset-filters:hover {
    color: var(--ato-primary);
    border-color: var(--ato-primary);
    background: var(--ato-bg-light);
}

/* Tour Details Grid Overhaul */
.ato-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 35px;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 25px;
}

@media (min-width: 900px) {
    .ato-details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .ato-details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ato-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 5px;
    transition: transform 0.2s ease;
}

.ato-detail-item:hover {
    transform: translateY(-2px);
}

.ato-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--ato-bg-light);
    /* Use light beige from palette */
    color: var(--ato-accent);
    /* Use Rust Red for icons */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.ato-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2px;
}

.ato-detail-content label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ato-text-muted);
    font-weight: 700;
    margin-bottom: 6px;
    opacity: 0.8;
}

.ato-detail-content span {
    font-size: 15px;
    color: var(--ato-primary);
    /* Dark Brown */
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================
   Mobile Filter Toggle & Sidebar Improvements
   ========================================= */

/* Mobile Filter Toggle Button */
.ato-mobile-filter-toggle {
    display: none;
    width: auto;
    padding: 12px 24px;
    background: #ffffff !important;
    color: var(--ato-primary) !important;
    border: 2px solid var(--ato-primary) !important;
    border-radius: var(--ato-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ato-mobile-filter-toggle:hover {
    background: var(--ato-primary) !important;
    color: #ffffff !important;
    border-color: var(--ato-primary) !important;
}

.ato-mobile-filter-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Mobile Sidebar Styles */
@media (max-width: 768px) {

    /* Show mobile toggle button */
    .ato-mobile-filter-toggle {
        display: flex;
    }

    /* Collapsible sidebar on mobile */
    .ato-sidebar-area {
        margin-bottom: 24px;
    }

    .ato-sidebar-filters {
        display: none;
        margin-top: 0;
    }

    .ato-sidebar-filters.is-open {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    /* Mobile container padding */
    .ato-container {
        padding: 0 16px;
    }

    /* Mobile hero adjustments */
    .ato-operator-hero {
        padding: 40px 0 60px;
    }

    .ato-hero-title {
        font-size: 28px !important;
        margin-bottom: 20px;
    }

    .ato-hero-stats-integrated {
        gap: 16px;
        padding: 16px 20px;
        flex-wrap: wrap;
        width: 100%;
    }

    .ato-hero-stat {
        min-width: auto;
        padding: 8px 12px;
    }

    .ato-stat-val {
        font-size: 18px;
    }

    /* Enquiry card mobile */
    .ato-enquiry-card {
        padding: 24px;
        margin: 0 16px;
    }

    .ato-enquiry-card h3 {
        font-size: 20px;
    }

    /* Bottom inquiry section mobile */
    .ato-bottom-inquiry-section {
        padding: 50px 0;
    }

    .ato-bottom-inquiry-card {
        padding: 40px 24px;
    }

    .ato-bottom-inquiry-card h2 {
        font-size: 28px;
    }

    /* Modal adjustments for mobile */
    .ato-modal-content {
        margin: 20px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Form adjustments */
    .ato-form-grid {
        gap: 16px;
    }

    /* Section headers mobile */
    .ato-section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .ato-section-header h3 {
        font-size: 22px;
    }

}

/* Animation for filter dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .ato-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ato-stat-value {
        font-size: 24px;
    }

    .ato-tabs-nav {
        flex-wrap: wrap;
        border-radius: var(--ato-radius-lg);
    }

    .ato-tabs-nav li {
        padding: 8px 16px;
        font-size: 13px;
    }

}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
    .ato-hero-title {
        font-size: 24px !important;
    }

    .ato-tour-card {
        margin: 0 8px;
    }

    .ato-tour-title {
        font-size: 16px;
    }

    .ato-card-details {
        padding: 16px;
    }

    .ato-button {
        padding: 12px 16px;
        font-size: 13px;
    }

    .ato-hero-stat {
        flex: 1;
        text-align: center;
    }
}

/* =========================================================
   Tour Card v2 - Editorial / Luxury (2026 redesign)
   Matches new design system: clean image, content-area
   destination + duration header row, serif title, star
   rating, operator with verified check + years,
   dashed divider, "View ->" text link footer.
   ========================================================= */

.ato-tour-card.ato-tour-card-v2 {
    background: #ffffff;
    border: 1px solid var(--ato-border-color);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(var(--shadow), 0.04);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-color 0.35s ease;
}

.ato-tour-card.ato-tour-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(var(--shadow), 0.08), 0 2px 6px rgba(var(--shadow), 0.04);
    border-color: var(--ato-border-color);
}

/* Image: clean, no overlay badges */
.ato-tour-card.ato-tour-card-v2 .ato-tour-image {
    height: 240px;
    background: var(--ato-bg-light);
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ato-tour-card.ato-tour-card-v2:hover .ato-tour-image img {
    transform: scale(1.05);
}

/* Hide destination badge overlay - destination now lives in content header */
.ato-tour-card.ato-tour-card-v2 .ato-tour-badges {
    display: none;
}

/* Gallery badge: keep but restyle subtly */
.ato-tour-card.ato-tour-card-v2 .ato-gallery-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(var(--shadow), 0.78);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ato-tour-card.ato-tour-card-v2 .ato-gallery-badge .ato-gallery-icon {
    width: 13px;
    height: 13px;
    display: block;
    color: #fff;
}

.ato-tour-card.ato-tour-card-v2 .ato-gallery-badge .ato-gallery-count {
    display: inline-block;
}

/* Featured ribbon: keep, restyle to match */
.ato-tour-card.ato-tour-card-v2 .ato-featured-ribbon {
    top: 14px;
    left: 14px;
    background: var(--ato-primary) !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 1.2px;
}

/* Content area */
.ato-tour-card.ato-tour-card-v2 .ato-tour-content {
    padding: 22px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Header row: destination | duration */
.ato-tour-card.ato-tour-card-v2 .ato-tour-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
    gap: 12px;
}

.ato-tour-card.ato-tour-card-v2 .ato-meta-destination,
.ato-tour-card.ato-tour-card-v2 .ato-meta-duration {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ato-text-muted);
    line-height: 1;
}

.ato-tour-card.ato-tour-card-v2 .ato-meta-duration {
    color: var(--ato-text-muted);
}

/* Suppress the dashicons that the old meta rule may inject */
.ato-tour-card.ato-tour-card-v2 .ato-tour-meta-header .dashicons {
    display: none;
}

/* Title */
.ato-tour-card.ato-tour-card-v2 .ato-tour-title {
    font-family: var(--ato-font-heading, Georgia, 'Times New Roman', serif);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--ato-dark);
    margin: 0;
    padding: 0;
    border: none;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-title a:hover {
    color: var(--ato-primary);
}

/* Operator brand line - verified check + name + years */
.ato-tour-card.ato-tour-card-v2 .ato-tour-operator-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-operator-brand {
    align-items: center;
}

.ato-tour-card.ato-tour-card-v2 .ato-brand-logo {
    position: relative;
    width: 52px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--ato-border-color);
    box-shadow: 0 1px 3px rgba(var(--shadow), 0.06);
    overflow: visible;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ato-tour-card.ato-tour-card-v2 .ato-brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    padding: 4px;
    box-sizing: border-box;
}

/* Verified check badge tucked into the bottom-right corner of the logo chip */
.ato-tour-card.ato-tour-card-v2 .ato-tour-operator-brand.is-verified .ato-brand-logo::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ato-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(var(--shadow), 0.15);
    z-index: 2;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-operator-brand.is-verified .ato-brand-logo::before {
    content: "";
    position: absolute;
    right: 0px;
    bottom: 2px;
    width: 5px;
    height: 2.5px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg);
    z-index: 3;
}

.ato-tour-card.ato-tour-card-v2 .ato-brand-name {
    font-size: 13px;
    color: var(--ato-dark);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    display: inline;
}

.ato-tour-card.ato-tour-card-v2 .ato-brand-by {
    color: var(--ato-dark);
}

.ato-tour-card.ato-tour-card-v2 .ato-brand-operator {
    color: var(--ato-dark);
    font-weight: 600;
    margin-left: 2px;
}

.ato-tour-card.ato-tour-card-v2 .ato-brand-years {
    display: none;
}

/* Footer: dashed divider above, From price + View link */
.ato-tour-card.ato-tour-card-v2 .ato-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px dashed var(--ato-border-color);
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-price .amount-prefix {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--ato-text-muted);
    margin: 0;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-price .amount,
.ato-tour-card.ato-tour-card-v2 .ato-tour-price {
    font-family: var(--ato-font-heading, Georgia, 'Times New Roman', serif);
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-price .amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--ato-primary);
    font-family: var(--ato-font-heading, Georgia, 'Times New Roman', serif);
    line-height: 1.1;
}

/* "View ->" text link */
.ato-tour-card.ato-tour-card-v2 .ato-tour-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ato-font-heading, Georgia, 'Times New Roman', serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--ato-dark);
    text-decoration: none;
    background: transparent;
    padding: 6px 0;
    border: none;
    border-radius: 0;
    transition: color 0.2s ease, gap 0.25s ease;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-view-link:hover {
    color: var(--ato-primary);
    gap: 10px;
}

/* =========================================================
   Tour Card — homepage design (.at-tour) overrides
   When the plugin card uses .at-tour classes, defer all
   visual styling to the theme and only layer in the
   plugin-specific overlays (ribbon, gallery badge).
   ========================================================= */

/* Reset plugin card base styles — let .at-tour theme rules take over */
a.at-tour.ato-tour-card {
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    transition: background .5s cubic-bezier(.22,1,.36,1),
                transform .5s cubic-bezier(.22,1,.36,1),
                box-shadow .5s cubic-bezier(.22,1,.36,1);
}

/* Image container: relative for badge overlays, line-height:0
   removes the default inline-element baseline gap under the img */
a.at-tour.ato-tour-card .at-tour-img {
    position: relative;
    line-height: 0;
}

/* Force block so no inline baseline gap pushes space below the image */
a.at-tour.ato-tour-card .at-tour-img img {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tighter body: reduce top padding and item gap */
a.at-tour.ato-tour-card .at-tour-body {
    padding: 1rem 1.2rem 0.75rem;
    gap: 0.3rem;
}

/* Featured ribbon */
a.at-tour.ato-tour-card .ato-featured-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--ato-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
}

/* Title: smaller, clamped to 2 lines so all cards align uniformly */
a.at-tour.ato-tour-card .at-tour-body h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    min-height: 2.6em;       /* reserves space for exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Operator line: single line with ellipsis so it never wraps */
a.at-tour.ato-tour-card .at-tour-op {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pin rating + operator to the bottom of the body so they
   sit at the same vertical position across all cards */
a.at-tour.ato-tour-card .at-tour-rate {
    margin-top: auto;
}
a.at-tour.ato-tour-card .at-tour-body:not(:has(.at-tour-rate)) .at-tour-op {
    margin-top: auto;
}

/* Footer: tighter font sizes so price and View → fit on one line */
a.at-tour.ato-tour-card .at-tour-foot {
    padding: 0.75rem 1.2rem 1rem;
}
a.at-tour.ato-tour-card .at-tour-px {
    font-size: 1rem;
    line-height: 1.1;
}
a.at-tour.ato-tour-card .at-tour-px small {
    font-size: 0.6875rem;
    letter-spacing: .28em;
    margin-bottom: .2rem;
}
a.at-tour.ato-tour-card .arr {
    font-size: 1rem;
    white-space: nowrap;
}

/* Gallery badge */
a.at-tour.ato-tour-card .ato-gallery-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(var(--shadow), 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-view-link .ato-tour-view-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.ato-tour-card.ato-tour-card-v2 .ato-tour-view-link:hover .ato-tour-view-arrow {
    transform: translateX(2px);
}

/* Featured variant: subtle accent only, no garish ring */
.ato-tour-card.ato-tour-card-v2.ato-featured {
    border-color: var(--ato-secondary-light);
}

/* Responsive */
@media (max-width: 600px) {
    .ato-tour-card.ato-tour-card-v2 .ato-tour-image {
        height: 200px;
    }
    .ato-tour-card.ato-tour-card-v2 .ato-tour-content {
        padding: 18px 18px;
        gap: 12px;
    }
    .ato-tour-card.ato-tour-card-v2 .ato-tour-title {
        font-size: 19px;
    }
    .ato-tour-card.ato-tour-card-v2 .ato-tour-price .amount {
        font-size: 19px;
    }
    .ato-tour-card.ato-tour-card-v2 .ato-tour-view-link {
        font-size: 15px;
    }
}

/* =========================================================
   Dashicons hardened glyph rendering
   Forces font-family + content with !important so cached/
   optimized pages cannot strip the icon glyph.
   ========================================================= */

.dashicons,
.dashicons-before {
    font-family: 'dashicons' !important;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    speak: never;
    width: 20px;
    height: 20px;
    font-size: 20px;
    vertical-align: middle;
    text-align: center;
}

.dashicons::before,
.dashicons-before::before {
    font-family: 'dashicons' !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dashicons.dashicons-clock::before              { content: "\f469" !important; }
.dashicons.dashicons-calendar-alt::before       { content: "\f508" !important; }
.dashicons.dashicons-calendar::before           { content: "\f145" !important; }
.dashicons.dashicons-location-alt::before       { content: "\f231" !important; }
.dashicons.dashicons-location::before           { content: "\f230" !important; }
.dashicons.dashicons-flag::before               { content: "\f227" !important; }
.dashicons.dashicons-businessperson::before     { content: "\f12e" !important; }
.dashicons.dashicons-admin-users::before        { content: "\f110" !important; }

.dashicons.dashicons-images-alt2::before        { content: "\f233" !important; }
.dashicons.dashicons-format-gallery::before     { content: "\f161" !important; }
.dashicons.dashicons-yes-alt::before            { content: "\f12a" !important; }
.dashicons.dashicons-yes::before                { content: "\f147" !important; }
.dashicons.dashicons-money-alt::before          { content: "\f18e" !important; }
.dashicons.dashicons-money::before              { content: "\f526" !important; }
.dashicons.dashicons-arrow-right-alt2::before   { content: "\f345" !important; }
.dashicons.dashicons-arrow-left-alt2::before    { content: "\f341" !important; }
.dashicons.dashicons-arrow-up-alt2::before      { content: "\f343" !important; }
.dashicons.dashicons-arrow-down-alt2::before    { content: "\f347" !important; }
.dashicons.dashicons-search::before             { content: "\f179" !important; }
.dashicons.dashicons-filter::before             { content: "\f536" !important; }
.dashicons.dashicons-email-alt::before          { content: "\f466" !important; }
.dashicons.dashicons-email::before              { content: "\f465" !important; }
.dashicons.dashicons-phone::before              { content: "\f525" !important; }
.dashicons.dashicons-admin-links::before        { content: "\f103" !important; }
.dashicons.dashicons-admin-site::before         { content: "\f319" !important; }
.dashicons.dashicons-info-outline::before       { content: "\f14c" !important; }
.dashicons.dashicons-info::before               { content: "\f348" !important; }
.dashicons.dashicons-warning::before            { content: "\f534" !important; }
.dashicons.dashicons-dismiss::before            { content: "\f153" !important; }
.dashicons.dashicons-plus-alt::before           { content: "\f502" !important; }
.dashicons.dashicons-plus::before               { content: "\f132" !important; }
.dashicons.dashicons-chart-bar::before          { content: "\f185" !important; }
.dashicons.dashicons-shield::before             { content: "\f332" !important; }
.dashicons.dashicons-share1::before             { content: "\f237" !important; }
.dashicons.dashicons-megaphone::before          { content: "\f488" !important; }
.dashicons.dashicons-camera::before             { content: "\f306" !important; }
.dashicons.dashicons-sos::before                { content: "\f468" !important; }
.dashicons.dashicons-portfolio::before          { content: "\f322" !important; }
.dashicons.dashicons-tickets-alt::before        { content: "\f524" !important; }
.dashicons.dashicons-tickets::before            { content: "\f486" !important; }
.dashicons.dashicons-cart::before               { content: "\f174" !important; }
.dashicons.dashicons-visibility::before         { content: "\f177" !important; }
.dashicons.dashicons-admin-customizer::before   { content: "\f540" !important; }
.dashicons.dashicons-admin-appearance::before   { content: "\f100" !important; }

/* ==========================================================================
   Verification badge
   Replaces the flat uppercase chip that read as an admin status label. A
   scalloped gold seal with a knocked-out tick, on a soft tint, with the label
   in ink rather than reversed out of a solid block.
   The old .ato-badge-verified rules are deliberately kept — admin columns and
   other templates still use that class.
   ========================================================================== */
.ato-vbadge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    background: rgba(var(--shadow, 36, 22, 9), .055);
    border: 1px solid var(--ato-border-color, rgba(var(--shadow, 36, 22, 9), .18));
    color: var(--ato-dark, #241609);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    text-transform: none;
    vertical-align: middle;
    white-space: nowrap;
}

.ato-vbadge-mark {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    display: block;
}

/* the rosette body */
.ato-vbadge-mark path:first-child {
    fill: var(--ato-accent, #a8750f);
}

/* the tick, knocked out as a stroke so it stays crisp at any size */
.ato-vbadge-mark .ato-vbadge-tick {
    fill: none;
    stroke: var(--ato-bg-white, #fffaf0);
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ato-vbadge-text {
    display: inline-block;
}

/* compact variant for the sidebar's Marketplace Status row */
.ato-vbadge--sm {
    font-size: 11.5px;
    padding: 3px 10px 3px 7px;
    gap: 6px;
}

.ato-vbadge--sm .ato-vbadge-mark {
    width: 16px;
    height: 16px;
}

/* On the operator id card the badge follows a large serif name, so it needs to
   sit on the text baseline rather than the line box. */
.ato-op-idcard .ato-vbadge {
    margin-left: 12px;
    position: relative;
    top: -2px;
}

@media (max-width: 600px) {
    /* the name wraps on a phone; the badge drops under it rather than squeezing */
    .ato-op-idcard .ato-vbadge {
        margin-left: 0;
        margin-top: 8px;
        top: 0;
    }
}

/* --- badge variants: one mark, four placements -------------------------- */

/* Beside an operator name in body copy: no tinted pill, just the seal and the
   words, because it sits inside a sentence rather than beside a heading. */
.ato-vbadge--inline {
    background: none;
    border: 0;
    padding: 0;
    gap: 6px;
    font-size: 12px;
}

.ato-vbadge--inline .ato-vbadge-mark {
    width: 16px;
    height: 16px;
}

/* Over a photograph. The soft tint is invisible on an image, so this variant is
   opaque, and the border goes because the fill already separates it. */
.ato-vbadge--on-image {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--ato-bg-white, #fffaf0);
    border: 0;
    box-shadow: 0 2px 8px rgba(var(--shadow, 36, 22, 9), .22);
    padding: 5px 11px 5px 8px;
    font-size: 11.5px;
}

/* Tight card furniture: the seal alone, with the label for assistive tech only.
   No pill — at this size a background would read as a smudge. */
.ato-vbadge--mark {
    background: none;
    border: 0;
    padding: 0;
    gap: 0;
}

.ato-vbadge--mark .ato-vbadge-mark {
    width: 15px;
    height: 15px;
}

/* The safari card's operator line is small and tight, so pull the seal onto the
   text baseline rather than letting it stretch the row. */
a.at-tour.ato-tour-card .at-tour-op .ato-vbadge--mark {
    vertical-align: middle;
    margin-left: 5px;
    position: relative;
    top: -1px;
}

/*
 * Typography for the activity guide, which had none.
 *
 * The theme opens with a global reset, and nothing restored rhythm inside
 * .ato-activity-guide, so every heading and paragraph on all 104 activity pages sat
 * flush against its neighbours: h2 margin 0, p margin 0, engagement blocks margin 0.
 * The page template does this properly through .page-content, so the values below
 * deliberately match it rather than inventing a second scale.
 *
 * The engagement blocks are styled STRUCTURALLY, not by class name. Each guide was
 * written with its own block names (day-shape, springs-facts, butterfly-sites,
 * quad-jinja-day and a hundred others), so there is no class worth targeting. What is
 * reliable is the shape the writing standard required: a div holding one div per row.
 */
/*
 * Guide authorship. The byline is quiet, because it states a fact about the page
 * rather than making a claim at the reader. The card is set apart so the disclosure
 * inside it cannot read as part of the guide's own argument.
 */
.ato-guide-byline {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 22px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--rule, #d9c1a0);
}

.ato-guide-byline--house {
    display: block;
    margin: 0 0 22px;
    padding: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.6;
    font-style: italic;
    color: var(--text, #5a4735);
    border-bottom: 1px solid var(--rule, #d9c1a0);
}

.ato-byline-disc,
.ato-author-disc {
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--tan, #f1b063);
    color: var(--ink, #241609);
    font-family: var(--sans, 'Google Sans', sans-serif);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
 * A real headshot takes the same circle as the initials it replaces. object-fit keeps
 * a portrait crop centred rather than squashed: the three supplied photographs are
 * 768x1024, 640x640 and 1466x2560, so without this the tall ones would distort.
 */
.ato-byline-disc--photo,
.ato-author-disc--photo {
    display: block;
    object-fit: cover;
    object-position: center top;
    background: var(--rule, #d9c1a0);
}

.ato-byline-disc {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.ato-author-disc {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

.ato-byline-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text, #5a4735);
}

.ato-byline-name {
    font-weight: 600;
    color: var(--ink, #241609);
}

.ato-byline-note {
    opacity: .8;
}

.ato-byline-note::before {
    content: '\00b7';
    margin: 0 5px;
}

.ato-guide-author {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 34px 0 0;
    padding: 20px 22px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--rule, #d9c1a0);
    border-left: 3px solid var(--tan, #f1b063);
}

.ato-author-body {
    min-width: 0;
}

.ato-author-name {
    margin: 0;
    font-family: var(--serif, 'Albert Sans', sans-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink, #241609);
}

.ato-author-role {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text, #5a4735);
}

.ato-author-note {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text, #5a4735);
}

.ato-author-links {
    margin: 12px 0 0;
    font-size: 13.5px;
}

@media (max-width: 600px) {

    .ato-guide-author {
        flex-direction: column;
        gap: 10px;
    }
}

/* The lede is the page's short answer, and it is prose, so it takes the measure too. */
.ato-activity-lede {
    max-width: var(--ato-measure, 700px);
}

/*
 * The way to the full listing, after the guide. Styled as a destination in its own
 * right rather than a trailing link, because it is the page's closing action and the
 * reader has just scrolled several thousand pixels to reach it.
 */
.ato-seeall {
    margin: 36px 0 0;
    padding-top: 26px;
    border-top: 1px solid var(--rule, #d9c1a0);
}

.ato-seeall-link {
    display: inline-block;
    font-family: var(--sans, 'Google Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink, #241609);
    text-decoration: none;
    padding: 13px 22px;
    border: 1px solid var(--rule, #d9c1a0);
    border-radius: 6px;
    background: rgba(255, 255, 255, .55);
    transition: background .18s ease, border-color .18s ease;
}

.ato-seeall-link::after {
    content: '\2192';
    margin-left: 9px;
}

.ato-seeall-link:hover,
.ato-seeall-link:focus-visible {
    background: var(--tan, #f1b063);
    border-color: var(--tan, #f1b063);
}

/*
 * The heading above the listings grid on the taxonomy archives. It exists to close an
 * outline gap rather than to decorate, so it is set to read as a section label and not
 * to compete with the h1 above it or the guide's own h2s below.
 *
 * Deliberately NOT given the reading measure: it labels a full width grid, so pinning
 * it to a 700px text column would leave it floating away from what it heads.
 */
.ato-section-h2 {
    font-family: var(--serif, 'Albert Sans', sans-serif);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink, #241609);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule, #d9c1a0);
}

.ato-activity-guide {
    max-width: var(--ato-measure, 700px);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text, #5a4735);
}

.ato-activity-guide h2 {
    font-family: var(--serif, "Albert Sans", "Segoe UI", Arial, sans-serif);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.22;
    color: var(--ink, #241609);
    margin: 40px 0 14px;
}

/* The first heading should not push the guide away from whatever precedes it. */
.ato-activity-guide > h2:first-child {
    margin-top: 0;
}

.ato-activity-guide p {
    margin: 0 0 18px;
}

.ato-activity-guide a {
    color: var(--olive, #9c2f0d);
    border-bottom: 1px solid var(--tan, #f1b063);
    text-decoration: none;
}

.ato-activity-guide a:hover,
.ato-activity-guide a:focus {
    border-bottom-color: var(--olive, #9c2f0d);
}

/*
 * An engagement block: a direct child div of the guide. Set apart from the prose so
 * the eye can tell a reference block from a paragraph, which is the whole point of
 * having written them as blocks.
 */
.ato-activity-guide > div {
    margin: 28px 0 30px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--rule, #d9c1a0);
    border-left: 3px solid var(--tan, #f1b063);
    border-radius: 8px;
}

/* One row per line, separated by a hairline rather than by whitespace alone. */
.ato-activity-guide > div > div {
    padding: 9px 0;
    border-top: 1px solid rgba(217, 193, 160, .55);
}

.ato-activity-guide > div > div:first-child {
    padding-top: 0;
    border-top: 0;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--ink, #241609);
}

.ato-activity-guide > div > div:last-child {
    padding-bottom: 0;
}

/* The lead-in on each row, which the guides write as a bolded phrase. */
.ato-activity-guide > div > div strong {
    color: var(--ink, #241609);
}

/* FAQ answers run on from a bolded question; give the question a little air. */
.ato-activity-guide p > strong:first-child {
    color: var(--ink, #241609);
}

@media (max-width: 700px) {
    .ato-activity-guide {
        font-size: 16px;
    }

    .ato-activity-guide h2 {
        font-size: 23px;
        margin-top: 32px;
    }

    .ato-activity-guide > div {
        padding: 16px 16px;
    }
}

/* =====================================================================
   PHOTOGRAPHER CREDITS
   =====================================================================
   Attribution is a condition of CC BY and CC BY-SA, not decoration, so
   none of these rules may hide a credit to tidy a layout. Where a credit
   could not be shown sensibly the answer is a credit-free photograph,
   never display:none.

   Three placements live here because ato-public.css is the only sheet in
   this component that loads on every view these surfaces appear on.
   ===================================================================== */

/* ---- the safari card ----------------------------------------------
   .at-tour-img is a fixed-ratio media box and the card's root element is
   an <a>. A block-level paragraph in the flow bursts the box (that is the
   bug this replaced) and a nested anchor is invalid, so the credit is an
   inert, absolutely positioned span that costs no layout at all.

   It sits at bottom-left but clear of the furniture already there: the
   operator disc hangs from bottom:-22px and the gallery badge sits at
   bottom:12px right:12px, so this clears both at bottom:36px. */
a.at-tour.ato-tour-card .ato-card-photocredit {
    position: absolute;
    left: 12px;
    bottom: 36px;
    z-index: 2;
    max-width: calc(100% - 24px);
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(var(--shadow), 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-align: left;
    overflow-wrap: anywhere;
}

/* ---- the Things To Do activity card --------------------------------
   Also one <a> per card, so also inert text, but this card has a body
   below the media box and the credit belongs there rather than over the
   photograph. 71 of these images are CC BY-SA and rendered no credit at
   all until now. */
.ato-things-to-do .ato-actcard-credit {
    display: block;
    margin-top: 8px;
    font-size: 0.625rem;
    line-height: 1.45;
    color: var(--ato-text-muted);
    overflow-wrap: anywhere;
}

/* ---- the term archive hero -----------------------------------------
   The destination and activity archives paint their hero photograph as a
   CSS background, which has nowhere to hang a caption, so the credit is a
   block at the foot of the page that names the photograph it credits.
   Printed by ATO_Guides::term_hero_credit(). */
.ato-photo-credits {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 16px 20px 28px;
    border-top: 1px solid var(--ato-border-color);
}

.ato-photo-credits__h {
    margin: 0 0 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ato-text-muted);
}

.ato-photo-credits__ctx {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--ato-text-muted);
}

/* ato-guides.css carries the base .ato-img-credit rules but does not load
   on a term archive, so the credit paragraph is styled in full here. */
.ato-photo-credits .ato-img-credit {
    margin: 2px 0 0;
    font-size: 0.75rem;
    line-height: 1.6;
    text-align: left;
    color: var(--ato-text-muted);
}

.ato-photo-credits .ato-img-credit a {
    color: inherit;
    text-decoration: underline;
}

.ato-photo-credits .ato-img-credit a:hover {
    color: var(--ato-primary);
}

@media (max-width: 640px) {

    .ato-photo-credits {
        padding: 14px 16px 24px;
    }

    /* Narrow cards are ~343px wide at 375px, so the pill gets a line more
       room rather than a smaller type size. */
    a.at-tour.ato-tour-card .ato-card-photocredit {
        left: 10px;
        right: 10px;
        bottom: 34px;
        max-width: none;
    }
}