/* Egypt Tours Calendar v3 — Front-End */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

.etc-wrap {
    font-family: 'Jost', sans-serif;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    --tour-color: #1a5f5a;
}

/* Header */
.etc-cal-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.etc-cal-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--tour-color); line-height: 1; }

.etc-legend { display: flex; gap: 14px; }
.etc-legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #7a6e64; }
.etc-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.etc-dot-open { background: var(--tour-color); }
.etc-dot-full { background: #b84a2e; }

.etc-nav { display: flex; align-items: center; gap: 10px; }
.etc-nav button { background: none; border: 1px solid #e8d9c4; border-radius: 50%; width: 32px; height: 32px; font-size: 20px; color: var(--tour-color); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; padding: 0; line-height: 1; }
.etc-nav button:hover { background: #d4ebe9; border-color: var(--tour-color); }
.etc-month-label { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; min-width: 160px; text-align: center; }

/* Day labels */
.etc-day-labels { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; margin-bottom: 3px; }
.etc-day-labels div { text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #7a6e64; padding: 6px 0; }
.etc-day-labels .etc-trip-day { color: var(--tour-color); font-weight: 700; }

/* Grid */
.etc-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.etc-loading { grid-column: 1/-1; text-align: center; padding: 40px; color: #7a6e64; font-size: 14px; }

/* Cells */
.etc-cell { min-height: 62px; border-radius: 7px; padding: 8px 7px 6px; background: #fffdf9; border: 1px solid transparent; transition: background .12s, border-color .12s, transform .1s; display: flex; flex-direction: column; gap: 4px; cursor: default; }
.etc-cell-other { opacity: .28; }
.etc-cell-today .etc-cell-num { background: #c9973a; color: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.etc-cell-open { background: #d4ebe9; border-color: #a8d4d0; cursor: pointer; }
.etc-cell-open:hover { background: #b8e0dc; border-color: var(--tour-color); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(26,95,90,.12); }
.etc-cell-full { background: #f5d5cc; border-color: #e8b8ae; cursor: not-allowed; }
.etc-cell-cancelled { background: #f0f0f0; opacity: .5; }
.etc-cell-num { font-size: 13px; font-weight: 500; color: #1c1c1c; line-height: 1; }
.etc-cell-open .etc-cell-num { color: var(--tour-color); font-weight: 700; }
.etc-cell-full .etc-cell-num { color: #b84a2e; }
.etc-cell-tag { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 5px; border-radius: 3px; display: inline-block; width: fit-content; }
.etc-tag-open { background: var(--tour-color); color: #fff; }
.etc-tag-full { background: #b84a2e; color: #fff; }

/* Modal */
.etc-modal-overlay { position: fixed; inset: 0; background: rgba(28,28,28,.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.etc-modal { background: #fffdf9; border-radius: 14px; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; padding: 28px 30px 24px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.etc-modal-close { position: absolute; top: 14px; right: 16px; background: #f5ede0; border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 18px; color: #7a6e64; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.etc-modal-close:hover { background: #e8d9c4; }

/* Form */
.etc-modal-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--tour-color); margin: 0 0 6px; }
.etc-trip-summary { background: #f5ede0; border-left: 3px solid #c9973a; border-radius: 0 7px 7px 0; padding: 10px 14px; margin-bottom: 18px; font-size: 13px; color: #7a6e64; }
.etc-trip-summary strong { display: block; color: #1c1c1c; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.etc-trip-summary a { color: var(--tour-color); font-weight: 500; }

.etc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.etc-field { margin-bottom: 14px; }
.etc-field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: #7a6e64; margin-bottom: 5px; }
.etc-field input[type="text"], .etc-field input[type="email"], .etc-field input[type="tel"], .etc-field input[type="number"], .etc-field select, .etc-field textarea {
    width: 100%; border: 1px solid #e8d9c4; border-radius: 6px; padding: 9px 11px; font-size: 14px; font-family: 'Jost', sans-serif; color: #1c1c1c; background: #fff; box-sizing: border-box; outline: none; transition: border-color .15s, box-shadow .15s; }
.etc-field input:focus, .etc-field select:focus, .etc-field textarea:focus { border-color: var(--tour-color); box-shadow: 0 0 0 3px rgba(26,95,90,.1); }
.etc-field textarea { resize: vertical; min-height: 64px; }
.etc-field-options { display: flex; flex-direction: column; gap: 6px; }
.etc-field-options label { font-size: 13px; letter-spacing: 0; text-transform: none; color: #1c1c1c; font-weight: 400; display: flex; align-items: center; gap: 8px; }
.etc-field-options label input { margin: 0; }

.etc-private-notice { background: #faece1; border-left: 3px solid #c9973a; padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 13px; color: #7a6e64; margin: 10px 0; }
.etc-private-notice strong { color: #1c1c1c; }

.etc-submit-btn { width: 100%; background: var(--tour-color); color: #fff; border: none; border-radius: 7px; padding: 12px; font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 6px; transition: opacity .15s; }
.etc-submit-btn:hover { opacity: .88; }
.etc-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.etc-error { background: #f5d5cc; border: 1px solid #e8b8ae; border-radius: 6px; padding: 10px 14px; font-size: 13px; color: #b84a2e; margin-bottom: 14px; }
.etc-success-wrap { text-align: center; padding: 20px 0 10px; }
.etc-success-icon { font-size: 52px; margin-bottom: 12px; display: block; }
.etc-success-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--tour-color); margin: 0 0 8px; }
.etc-success-msg { font-size: 14px; color: #7a6e64; line-height: 1.6; }

@media (max-width: 540px) {
    .etc-cal-title { font-size: 20px; }
    .etc-cell { min-height: 48px; padding: 5px 4px; }
    .etc-cell-tag { display: none; }
    .etc-form-row { grid-template-columns: 1fr; }
    .etc-modal { padding: 22px 18px 18px; }
}

/* Hide JSON data containers */
.etc-wrap .etc-fields-data { display: none !important; }

/* Duration badge on cells */
.etc-cell-duration {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0,0,0,0.06);
    color: #555;
    margin-top: 2px;
    width: fit-content;
}
.etc-cell-open .etc-cell-duration { background: rgba(26,95,90,0.15); color: #144d49; }
.etc-cell-full .etc-cell-duration { background: rgba(184,74,46,0.15); color: #8a3422; }
