/* ============================================================
   ServEasy — Phase 3 CSS Additions
   APPEND this to the bottom of assets/css/serveasy.css
   ============================================================ */

/* ----- Verified tick badge ----- */
.verified-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    vertical-align: middle;
}
.verified-tick i {
    color: #1DA1F2;
    font-size: 16px;
}

/* ----- Sidebar section labels (provider sidebar) ----- */
.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #aaa;
    padding: 10px 16px 4px;
    margin-top: 4px;
    display: block;
}

/* ----- Provider Availability Calendar ----- */
.cal-table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.cal-table th { text-align: center; font-size: 12px; color: #888; padding: 6px; }
.cal-day {
    border-radius: 8px; text-align: center; padding: 10px 6px;
    cursor: pointer; min-width: 40px;
    transition: transform 0.1s, border-color 0.1s;
    border: 2px solid #f0f0f0; background: #fff;
}
.cal-day:hover { transform: scale(1.05); border-color: #1e2d55; }
.cal-day .day-num { font-weight: 700; font-size: 15px; }
.cal-day .day-status { font-size: 10px; margin-top: 2px; }
.cal-day.available { background: #e8f8f0; border-color: #27ae60; }
.cal-day.available .day-num { color: #27ae60; }
.cal-day.busy { background: #fff8e8; border-color: #f39c12; }
.cal-day.busy .day-num { color: #f39c12; }
.cal-day.off { background: #fde8e8; border-color: #e74c3c; }
.cal-day.off .day-num { color: #e74c3c; }
.cal-day.today { box-shadow: 0 0 0 3px #1e2d55 inset !important; }
.cal-day.past { opacity: 0.4; cursor: default; }
.cal-day.empty { border: none; background: transparent; cursor: default; }

/* ----- Booking card ----- */
.booking-card { border-radius: 12px !important; transition: box-shadow 0.2s; }
.booking-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1) !important; }

/* ----- Media Library ----- */
.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.ml-item {
    position: relative; border-radius: 8px; overflow: hidden;
    cursor: pointer; border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.15s;
    background: #f4f6fb; aspect-ratio: 1;
}
.ml-item:hover { border-color: #1e2d55; transform: scale(1.02); }
.ml-item.selected { border-color: #f5a623; }
.ml-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-item-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5); opacity: 0;
    transition: opacity 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.ml-item:hover .ml-item-overlay { opacity: 1; }
.ml-selected-check {
    position: absolute; top: 6px; right: 6px;
    background: #f5a623; color: #fff;
    border-radius: 50%; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; opacity: 0; transition: opacity 0.15s;
}
.ml-item.selected .ml-selected-check { opacity: 1; }

/* ----- Portfolio card ----- */
.portfolio-cover { height: 180px; overflow: hidden; background: #f4f6fb; position: relative; }
.portfolio-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-hidden-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 20px;
}
.portfolio-tag-badge {
    position: absolute; top: 10px; right: 10px;
    background: #f5a623; color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 20px;
}

/* ----- Before/After comparison ----- */
.ba-thumb { width: 100%; height: 70px; object-fit: cover; border-radius: 6px; }
.ba-label { font-size: 11px; text-align: center; font-weight: 700; margin-top: 2px; }
.ba-label.before-label { color: #e74c3c; }
.ba-label.after-label  { color: #27ae60; }

/* ----- Response template row ----- */
.template-row {
    display: flex; align-items: flex-start;
    padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.template-row:last-child { border-bottom: none; }
.template-row:hover { background: #f9f9fb; }
.tpl-drag { cursor: grab; color: #ccc; font-size: 16px; padding-top: 2px; margin-right: 12px; flex-shrink: 0; }
.tpl-name { font-weight: 700; font-size: 14px; color: #1e2d55; margin-bottom: 4px; }
.tpl-body { font-size: 13px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 500px; }

/* ----- Pack cards (extra media) ----- */
.pack-card {
    border: 2px solid #e8ecf0; border-radius: 14px; padding: 24px;
    text-align: center; transition: all 0.2s; background: #fff;
}
.pack-card:hover { border-color: #1e2d55; box-shadow: 0 8px 24px rgba(30,45,85,0.12); transform: translateY(-2px); }
.pack-price { font-size: 32px; font-weight: 800; color: #1e2d55; }

/* ----- Media stat display ----- */
.media-stat-num { font-size: 22px; font-weight: 700; color: #1e2d55; }
.media-stat-lbl { font-size: 12px; color: #888; }

/* ----- OpenStreetMap embed ----- */
.osm-map-wrap {
    border-radius: 12px; overflow: hidden;
    border: 2px solid #e8ecf0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.osm-map-wrap iframe { display: block; }

/* ----- PWA Install Banner ----- */
#seInstallBanner { animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ----- Push notification bell button ----- */
.se-enable-push-btn {
    display: none; /* shown via JS when push available */
    border: none; background: #1e2d55; color: #fff;
    padding: 8px 16px; border-radius: 8px; font-size: 13px;
    cursor: pointer; transition: background 0.2s;
}
.se-enable-push-btn:hover { background: #2d4a8a; }

/* ----- Language switcher ----- */
.lang-switcher { position: relative; }
.lang-switcher select {
    appearance: none; border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1); color: #fff;
    padding: 4px 28px 4px 10px; border-radius: 6px;
    font-size: 13px; cursor: pointer;
}
.lang-switcher i { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.7); font-size: 11px; pointer-events: none; }

/* ----- Admin booking table ----- */
.btn-xs { padding: 2px 6px; font-size: 11px; }
