/* ==========================================================================
   Walks Calendar (wc-*) component styles
   ========================================================================== */

/* Suppress "»" list marker on The Events Calendar navigation */
ul.tribe-events-c-nav__list .tribe-events-c-nav__list-item::marker {
    content: none !important;
}

/* Remove <p> wrapper spacing from The Events Calendar navigation */
.tribe-events-c-top-bar__nav p,
.tribe-events-c-top-bar__actions p {
    border: 0;
    margin: 0;
    padding: 0;
}

/* Align the walks calendar card button to the right edge of the card */
div.tribe-events-pro-photo__event-details-wrapper > div > div.btn > a {
    margin-right: -25px !important;
    white-space: nowrap;
}

/* Container */
.wc-l-container {
    min-height: 700px;
    max-width: 1280px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Top bar ---- */
.wc-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 15px;
}

.wc-top-bar__nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wc-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Arrow buttons (top bar) */
.wc-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #1f2933;
    text-decoration: none;
    background: transparent;
}

.wc-nav__btn--disabled {
    color: #ccc;
    cursor: not-allowed;
}

.wc-nav__icon {
    font-size: 18px;
}

/* Today button */
.wc-today-btn {
    border: 1px solid #ddd;
    padding: 4px 14px;
    border-radius: 4px;
    text-decoration: none;
    color: #6b7100;
    font-size: 14px;
    background: #fff;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

/* Actions / filter area */
.wc-top-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---- Filter form ---- */
.wc-filter-form {
    margin: 0;
    display: inline-block;
}

.wc-filter-label {
    margin-right: 10px;
    font-weight: 600;
    color: #3b4f54;
}

.wc-filter-select {
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    outline: none;
    background: #fff;
    cursor: pointer;
}

/* ---- Footer pagination ---- */
.wc-footer {
    border-top: 1px solid #eee;
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.wc-footer__nav {
    width: 100%;
}

.wc-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.wc-footer__link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.wc-footer__link--disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wc-footer__icon {
    color: #7b868c;
}

.wc-footer__icon--left {
    margin-right: 12px;
}

.wc-footer__icon--right {
    margin-left: 12px;
}

.tribe-events-pro-photo--grid > div > ul {
    display: flex;
    flex-wrap: wrap;
}

.tribe-events-pro-photo--grid > div > ul > li {
    margin-bottom: 30px !important;
}

/* Date Picker Container & Trigger */
.wc-date-picker {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.wc-date-picker__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2b3338;
    cursor: pointer;
    outline: none;
}

.wc-date-picker__toggle:hover {
    color: #6f2d5e;
}

.wc-date-picker__chevron {
    font-size: 13px;
    color: #6f2d5e;
    transition: transform 0.15s ease;
}

/* Date Picker Floating Popup */
.wc-date-picker__popup {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 20px 22px;
    width: 290px;
    box-sizing: border-box;
    z-index: 99999;
}

.wc-date-picker.is-open .wc-date-picker__popup {
    display: block;
    animation: wcPopIn 0.15s ease-out;
}

/* Year Header inside Popup */
.wc-date-picker__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 4px;
}

.wc-date-picker__year-btn {
    background: transparent;
    border: none;
    color: #555555;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition:
        background 0.15s,
        color 0.15s;
}

.wc-date-picker__year-btn:hover {
    background: #f1f5f9;
    color: #6f2d5e;
}

.wc-date-picker__year-label {
    font-size: 18px;
    font-weight: 700;
    color: #6f2d5e;
}

/* Months Grid inside Popup */
.wc-date-picker__months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 10px;
}

.wc-date-picker__month-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6f2d5e;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.wc-date-picker__month-item:hover {
    background: #f8f9fa;
    border-color: #333333;
    color: #222222;
}

.wc-date-picker__month-item.is-active {
    background: #5c6314;
    color: #ffffff !important;
    font-weight: 700;
    border: 2px solid #2d3300;
}

.wc-date-picker__month-item.is-active:hover {
    background: #4f550f;
    color: #ffffff !important;
}

/* Mini-Calendar Day Picker Popup (Day & Photo Views) */
.wc-date-picker__popup--day {
    width: 320px;
    padding: 20px 22px;
}

.wc-date-picker__month-btn {
    background: transparent;
    border: none;
    color: #6f2d5e;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition:
        background 0.15s,
        color 0.15s;
}

.wc-date-picker__month-btn:hover {
    background: #f1f5f9;
    color: #6f2d5e;
}

.wc-date-picker__month-label {
    font-size: 18px;
    font-weight: 700;
    color: #6f2d5e;
}

/* Day Initials Header in Mini-Calendar */
.wc-day-picker__week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 12px;
    text-align: center;
}

.wc-day-picker__week-cell {
    font-size: 14px;
    font-weight: 600;
    color: #6f2d5e;
    text-decoration: underline dotted #6f2d5e;
    text-underline-offset: 3px;
    padding: 4px 0;
}

/* Dates Grid in Mini-Calendar */
.wc-day-picker__dates-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px 4px;
    text-align: center;
}

.wc-day-picker__date-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #6f2d5e;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.wc-day-picker__date-item.is-other-month {
    color: #6f2d5e;
    opacity: 0.85;
}

.wc-day-picker__date-item:hover {
    border-color: #333333;
    background: #f8f9fa;
    color: #222222;
}

.wc-day-picker__date-item.is-active {
    background: #5c6314 !important;
    color: #ffffff !important;
    font-weight: 700;
    border: 2px solid #2d3300 !important;
}

.wc-day-picker__date-item.is-active:hover {
    background: #4f550f !important;
    color: #ffffff !important;
}

/* View Switcher Dropdown */
.wc-view-switcher {
    position: relative;
    display: inline-block;
}

.wc-view-switcher > p {
    display: none;
}

.wc-view-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #444;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.wc-view-switcher__toggle:hover,
.wc-view-switcher.is-open .wc-view-switcher__toggle {
    border-color: #6b7100;
    color: #6b7100;
    background: #fafafa;
}

.wc-view-switcher__menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.04);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 145px;
    z-index: 9999;
}

.wc-view-switcher__menu li::marker {
    content: none !important;
}

.wc-view-switcher.is-open .wc-view-switcher__menu {
    display: block;
    animation: wcPopIn 0.15s ease-out;
}

@keyframes wcPopIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-view-switcher__item {
    margin: 0;
    padding: 0;
}

.wc-view-switcher__item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #6f2d5e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}

.wc-view-switcher__icon {
    color: #6f2d5e;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.wc-view-switcher__label {
    color: #6f2d5e;
}

.wc-view-switcher__item a:hover,
.wc-view-switcher__item.is-active a {
    background: #f8f3f7;
    color: #4a1c3f;
    font-weight: 600;
}

.wc-view-switcher__item.is-active .wc-view-switcher__icon,
.wc-view-switcher__item.is-active .wc-view-switcher__label {
    color: #4a1c3f;
}

/* Day View Styles */
.wc-day-view {
    margin-top: 20px;
    margin-bottom: 40px;
}

.wc-day-group {
    margin-bottom: 30px;
}

.wc-day-time-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.wc-day-time-label {
    font-size: 18px;
    font-weight: 700;
    color: #6f2d5e;
    margin-right: 15px;
    min-width: 55px;
}

.wc-day-time-line {
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.wc-day-events-list {
    padding-left: 70px;
}

@media (max-width: 600px) {
    .wc-day-events-list {
        padding-left: 10px;
    }

    .wc-date-picker__popup {
        right: -32px;
        left: unset;
    }
}

.wc-day-event-item {
    margin-bottom: 25px;
}

.wc-day-event-meta {
    font-size: 16px;
    color: #444;
    margin-bottom: 6px;
    font-weight: 500;
}

.wc-day-event-heading {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.wc-day-event-heading a {
    color: #6b7100;
    font-weight: 700;
    text-decoration: none;
}

.wc-day-event-heading a:hover {
    text-decoration: underline;
}

/* Day View - No Events Banner */
.wc-day-no-events-banner {
    background: #f3f3f3;
    border-radius: 4px;
    padding: 24px 20px;
    text-align: center;
    margin: 30px 0;
}

.wc-day-no-events-banner > p {
    margin: 0;
}

.wc-day-no-events-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #555;
    font-size: 15px;
}

.wc-day-no-events-icon {
    font-size: 20px;
    color: #7b868c;
}

.wc-day-next-events-link {
    color: #6b7100;
    font-weight: 700;
    text-decoration: underline;
}

.wc-day-next-events-link:hover {
    color: #525700;
}

/* Month View Grid Styles */
.wc-month-view {
    margin-top: 20px;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
}

.wc-month-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
}

.wc-month-header-cell {
    padding: 12px 14px;
    font-weight: 600;
    font-size: 14px;
    color: #333333;
    text-align: left;
}

.wc-month-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.wc-month-cell {
    min-height: 110px;
    padding: 10px 12px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
    position: relative;
    box-sizing: border-box;
}

.wc-month-cell:nth-child(7n) {
    border-right: none;
}

.wc-month-cell.is-other-month {
    background: #fafafa;
}

.wc-month-cell.is-today {
    background: #fffdf5;
}

.wc-month-day-number {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #6f2d5e;
    margin-bottom: 6px;
    text-decoration: none;
}

.wc-month-cell.is-other-month .wc-month-day-number {
    color: #6f2d5e;
    opacity: 0.85;
}

.wc-month-day-number.has-events {
    color: #6b7100;
    text-decoration: underline;
}

.wc-month-day-number.has-events:hover {
    color: #4f5300;
}

.wc-month-cell-events {
    margin-top: 4px;
}

.wc-month-event-item {
    margin-bottom: 8px;
}

.wc-month-event-time {
    font-size: 11px;
    color: #6f2d5e;
    font-weight: 500;
    line-height: 1.2;
}

.wc-month-event-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.wc-month-event-title a {
    color: #6b7100;
    text-decoration: none;
}

.wc-month-event-title a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .wc-l-container {
        min-height: 600px;
    }
    .wc-month-cell {
        min-height: 75px;
        padding: 6px 4px;
    }
    .wc-month-day-number {
        font-size: 14px;
    }
    .wc-month-event-time {
        font-size: 10px;
    }
    .wc-month-event-title {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .wc-top-bar__nav,
    .wc-top-bar__actions {
        width: 100%;
    }

    .wc-top-bar__actions {
        justify-content: flex-end;
    }
}
