/* Tools4Rent Public Styles */

/* ── Tool List / Grid ────────────────────────────────────────────────────── */
.t4r-tool-list {}

.t4r-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.t4r-tool-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.t4r-tool-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.t4r-tool-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.t4r-tool-body {
    padding: 16px;
}

.t4r-tool-name {
    margin: 0 0 4px;
    font-size: 1.1em;
}

.t4r-tool-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.04em;
}

.t4r-tool-desc {
    font-size: 14px;
    color: #444;
    margin: 8px 0 12px;
}

.t4r-tool-pricing {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.t4r-price {
    font-weight: 700;
    color: #1a1a1a;
}

.t4r-price-week {
    color: #555;
    font-size: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.t4r-button {
    display: inline-block;
    padding: 8px 18px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.t4r-button:hover, .t4r-button:focus {
    background: #005177;
    color: #fff;
}

.t4r-button-primary { background: #0073aa; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.t4r-pagination {
    margin: 20px 0;
    text-align: center;
}

.t4r-pagination a, .t4r-pagination span {
    display: inline-block;
    margin: 0 3px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #0073aa;
}

.t4r-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ── Tool Detail ─────────────────────────────────────────────────────────── */
.t4r-tool-detail {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.t4r-tool-gallery {
    flex: 0 0 340px;
    max-width: 340px;
}

.t4r-tool-gallery img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
    object-fit: cover;
}

.t4r-tool-info {
    flex: 1;
    min-width: 220px;
}

.t4r-pricing-table {
    margin: 14px 0;
    font-size: 15px;
    line-height: 2;
}

/* ── Calendar ────────────────────────────────────────────────────────────── */
.t4r-calendar-wrap {
    max-width: 340px;
    font-size: 14px;
    user-select: none;
}

.t4r-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.t4r-cal-prev, .t4r-cal-next {
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.t4r-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.t4r-cal-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 0;
    color: #555;
}

.t4r-cal-day {
    text-align: center;
    padding: 6px 0;
    border-radius: 3px;
    font-size: 13px;
}

.t4r-cal-day.available { background: #e6f4ea; color: #2d6a3e; }
.t4r-cal-day.blocked   { background: #fdecea; color: #9c3030; text-decoration: line-through; }
.t4r-cal-day.past      { color: #ccc; }
.t4r-cal-day.empty     {}

.t4r-calendar-legend {
    margin-top: 10px;
    font-size: 12px;
    display: flex;
    gap: 14px;
}

.t4r-legend-available, .t4r-legend-blocked {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

.t4r-legend-available { background: #e6f4ea; }
.t4r-legend-blocked   { background: #fdecea; }

/* ── Booking Form ────────────────────────────────────────────────────────── */
.t4r-booking-form-wrap {
    max-width: 420px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
}

.t4r-form-row {
    margin-bottom: 14px;
}

.t4r-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.t4r-form-row input[type=date],
.t4r-form-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.t4r-price-preview {
    padding: 10px;
    background: #f0f6fc;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 15px;
}

.t4r-form-messages {
    margin-bottom: 12px;
}

.t4r-msg-success { color: #155724; background: #d4edda; padding: 8px 12px; border-radius: 4px; }
.t4r-msg-error   { color: #721c24; background: #f8d7da; padding: 8px 12px; border-radius: 4px; }
