/* =========================================================
   Custom Travel Package Post Type — Stylesheet
   Used on both wp-admin (edit screen) and the public front end.
   ========================================================= */

/* ---------- Shared form inputs (admin meta boxes) ---------- */
.travel-cpt-table input,
.travel-cpt-table select,
.travel-cpt-table textarea {
    box-sizing: border-box;
}

.travel-input-xs   { width: 80px; }
.travel-input-sm   { width: 150px; }
.travel-input-md   { width: 200px; }
.travel-input-full { width: 100%; }

/* ---------- Itinerary repeater (admin) ---------- */
.travel-itinerary-row {
    border: 1px solid #dcdcde;
    background: #fff;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.travel-itinerary-row p {
    margin: 0 0 8px;
}

#travel-add-itinerary-row {
    margin-top: 4px;
}

/* ---------- Term (category) image field — Destinations / Travel Types ---------- */
.travel-term-image-preview {
    margin-bottom: 8px;
}

.travel-term-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.travel-term-thumb-lg {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.travel-term-archive-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
}

#travel-term-image-remove {
    margin-left: 4px;
}

/* ---------- Gallery picker (admin) ---------- */
.travel-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.travel-gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

/* =========================================================
   Front-end display
   ========================================================= */

.travel-package-details {
    margin-top: 24px;
}

.travel-package-details h3 {
    margin-top: 28px;
    margin-bottom: 10px;
}

/* ---- Summary bar ---- */
.travel-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #e2e2e2;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    background: #fafafa;
}

.travel-summary-item strong {
    margin-right: 4px;
}

.travel-price-sale {
    color: #c0392b;
    font-weight: 600;
}

/* ---- Gallery ---- */
.travel-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.travel-gallery-image {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
}

/* ---- Highlights ---- */
.travel-highlights-list {
    padding-left: 20px;
}

/* ---- Itinerary ---- */
.travel-itinerary-day {
    margin-bottom: 14px;
}

.travel-itinerary-day p {
    margin: 4px 0 0;
}

/* ---- Inclusions / Exclusions ---- */
.travel-inclusions {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.travel-inclusions ul {
    padding-left: 0;
    list-style: none;
}

.travel-item-yes::before {
    content: "✅ ";
}

.travel-item-no::before {
    content: "❌ ";
}

/* ---- Map ---- */
.travel-map iframe {
    max-width: 100%;
    border: 0;
    border-radius: 6px;
}

/* ---- Booking CTA ---- */
.travel-booking-cta {
    border-top: 1px solid #e2e2e2;
    padding-top: 20px;
    margin-top: 20px;
}

.travel-book-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.travel-book-button:hover {
    background: #005d87;
    color: #fff;
}

/* ---- Grid shortcode [travel_package_grid] ---- */
.travel-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.travel-grid-card {
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    background: #fff;
    transition: box-shadow 0.15s ease;
}

.travel-grid-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.travel-grid-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.travel-grid-card-body {
    padding: 12px;
}

.travel-grid-card-title {
    margin: 0 0 6px;
}

.travel-grid-card-price {
    margin: 0;
    color: #444;
}
