/* ==================== PLANNER PAGE — compact single-page ==================== */
.planner-page {
    padding-top: 50px;
    min-height: 100vh;
    background: var(--gray-50);
    padding-bottom: 100px;
}

.planner-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ==================== SECTION CARD ==================== */
.plan-section {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.plan-section__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

/* ==================== DATES ROW ==================== */
.plan-dates-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.plan-date {
    flex: 1;
    min-width: 0;
}

.plan-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.plan-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-900);
    min-height: 44px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.plan-input:focus {
    outline: none;
    border-color: var(--primary);
}

.plan-arrow {
    font-size: 18px;
    color: var(--gray-400);
    padding-bottom: 12px;
    flex-shrink: 0;
}

.plan-guests {
    flex-shrink: 0;
}

.plan-guests-ctrl {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 4px 8px;
    min-height: 44px;
}

.plan-ctrl-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--white);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.plan-ctrl-btn:hover {
    background: var(--primary);
    color: #fff;
}

.plan-guests-count {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    min-width: 24px;
    text-align: center;
}

.plan-nights {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    min-height: 20px;
    margin-top: 8px;
}

/* ==================== SELECT BUTTON ==================== */
.plan-select-btn {
    width: 100%;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 1.5px dashed var(--gray-300);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: left;
}

.plan-select-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.04);
}

/* ==================== SELECTED ITEM ==================== */
.plan-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(14, 165, 233, 0.06);
    border: 1.5px solid var(--primary);
    border-radius: 10px;
}

.plan-selected__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.plan-selected__info {
    flex: 1;
    min-width: 0;
}

.plan-selected__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-selected__meta {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-selected__clear {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--gray-200);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.15s;
}

.plan-selected__clear:hover {
    background: #ef4444;
    color: #fff;
}

/* ==================== BOTTOM SHEET ==================== */
.plan-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.plan-sheet__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.plan-sheet__content {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    animation: planSlideUp 0.25s ease;
}

@keyframes planSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.plan-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plan-sheet__header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.plan-sheet__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.plan-sheet__search-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.plan-sheet__search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.plan-sheet__filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.plan-sheet__filters::-webkit-scrollbar { display: none; }

.plan-filter {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.plan-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.plan-filter:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.plan-sheet__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-sheet__empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--gray-400);
    font-size: 14px;
}

/* ==================== CARD (for hotel/transfer picker) ==================== */
.plan-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-100);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.plan-card:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.04);
}

.plan-card.selected {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
}

.plan-card__main {
    flex: 1;
    min-width: 0;
}

.plan-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-card__meta {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-card__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.plan-card__btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.plan-card.selected .plan-card__btn {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================== ACTIVITIES ACCORDION ==================== */
.plan-category {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
}

.plan-category__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.plan-category__header:hover {
    background: var(--gray-50);
}

.plan-category__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.plan-category__name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.plan-category__count {
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
}

.plan-category__arrow {
    font-size: 18px;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.plan-category.open .plan-category__arrow {
    transform: rotate(90deg);
}

.plan-category__body {
    display: none;
    padding: 0 12px 12px;
}

.plan-category.open .plan-category__body {
    display: block;
}

/* ==================== SERVICE ITEM ==================== */
.plan-svc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.15s;
}

.plan-svc:hover {
    background: var(--gray-50);
}

.plan-svc__icon {
    font-size: 22px;
    flex-shrink: 0;
}

.plan-svc__info {
    flex: 1;
    min-width: 0;
}

.plan-svc__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.plan-svc__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.plan-svc__add {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.plan-svc__add.added {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================== PLAN SUMMARY ==================== */
.plan-summary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.plan-summary .plan-section__title {
    color: #fff;
}

.plan-day {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.plan-day__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.plan-day__date {
    font-size: 14px;
    font-weight: 700;
}

.plan-day__total {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
}

.plan-day__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}

.plan-day__icon {
    font-size: 16px;
    flex-shrink: 0;
}

.plan-day__name {
    flex: 1;
    font-weight: 500;
}

.plan-day__price {
    font-weight: 600;
    opacity: 0.9;
}

.plan-day__remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.plan-day__remove:hover {
    background: rgba(239, 68, 68, 0.8);
}

.plan-day__empty {
    font-size: 12px;
    opacity: 0.6;
    font-style: italic;
}

.plan-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 20px;
    font-weight: 800;
}

.plan-done-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #fff;
    color: #059669;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
    font-family: inherit;
}

.plan-done-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ==================== GUIDES ==================== */
.plan-guides {
    margin-top: 24px;
    padding: 0 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.plan-guides__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 16px;
}

.plan-guides__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.plan-guide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.plan-guide:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.plan-guide__icon {
    font-size: 28px;
}

.plan-guide__text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
}

/* ==================== GUIDE MODAL BODY ==================== */
.guide-modal__body {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.guide-modal__body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 16px 0 8px;
}

.guide-modal__body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.guide-modal__body li {
    margin-bottom: 4px;
}

.guide-modal__body p {
    margin-bottom: 8px;
}

/* ==================== CTA ==================== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    margin-top: 24px;
}

.cta__inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.cta__inner h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.cta__inner p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
    min-height: 44px;
}

.cta__btn--call {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.cta__btn--call:hover {
    transform: translateY(-2px);
}

.cta__btn--write {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.cta__btn--write:hover {
    background: rgba(255,255,255,0.25);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .planner-container {
        padding: 12px;
    }

    .plan-section {
        padding: 16px;
        border-radius: 12px;
    }

    .plan-dates-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .plan-date {
        min-width: calc(50% - 20px);
    }

    .plan-arrow {
        display: none;
    }

    .plan-guests {
        width: 100%;
    }

    .plan-guests-ctrl {
        width: 100%;
        justify-content: center;
    }

    .plan-guides__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-category__name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .plan-input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .plan-section__title {
        font-size: 15px;
    }
}

/* ==================== DAY PICKER MODAL ==================== */
.day-picker {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.day-picker__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.day-picker__content {
    position: relative;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

.day-picker__header {
    font-size: 15px;
    color: var(--gray-700);
    margin-bottom: 16px;
    text-align: center;
}

.day-picker__days {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.day-picker__day {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 2px solid var(--gray-100);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    text-align: left;
    font-family: inherit;
}

.day-picker__day:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.day-picker__weather {
    font-size: 20px;
}

.day-picker__date {
    font-weight: 700;
    flex: 1;
}

.day-picker__count {
    font-size: 12px;
    color: var(--gray-400);
}

.day-picker__cancel {
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    color: var(--gray-500);
    cursor: pointer;
    font-family: inherit;
}

@media (min-width: 768px) {
    .day-picker {
        align-items: center;
    }
    .day-picker__content {
        border-radius: 20px;
    }
}

/* ==================== WEATHER IN PLAN ==================== */
.plan-day__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.plan-day__weather {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
}

/* ==================== DRAG & DROP ==================== */
.plan-day__item[draggable] {
    cursor: grab;
}

.plan-day__item[draggable]:active {
    cursor: grabbing;
}

.plan-day__item.dragging {
    opacity: 0.5;
    transform: scale(0.97);
}

.plan-day__items.drag-over {
    background: rgba(14, 165, 233, 0.05);
    border: 2px dashed var(--primary);
    border-radius: 10px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
