/*
 * Tatil Paketi Yönetimi - Frontend stilleri
 * Tüm class isimleri tpy- prefix'i kullanır, tema çakışması olmaz.
 */

.tpy-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
    color: #1f2937;
    font-family: inherit;
    line-height: 1.5;
}
.tpy-wrap *, .tpy-wrap *::before, .tpy-wrap *::after { box-sizing: border-box; }

/* GRID */
.tpy-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
.tpy-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tpy-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tpy-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .tpy-grid-cols-3, .tpy-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tpy-grid-cols-2, .tpy-grid-cols-3, .tpy-grid-cols-4 { grid-template-columns: 1fr; }
}

/* CARD */
.tpy-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tpy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.tpy-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
}
.tpy-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.tpy-card:hover .tpy-card-media img { transform: scale(1.05); }
.tpy-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    font-size: 64px;
}
.tpy-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
}
.tpy-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}
.tpy-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.tpy-card-title a { color: inherit; text-decoration: none; }
.tpy-card-title a:hover { color: #0ea5e9; }

.tpy-card-route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}
.tpy-tag {
    background: #f1f5f9;
    color: #334155;
    border-radius: 6px;
    padding: 3px 8px;
}
.tpy-route-arrow { color: #94a3b8; }

.tpy-card-desc {
    color: #4b5563;
    font-size: 14px;
    margin: 0;
}
.tpy-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.tpy-card-price { display: flex; flex-direction: column; }
.tpy-price-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; }
.tpy-price-value { font-size: 20px; font-weight: 800; color: #0f172a; }

.tpy-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* BUTTONS */
.tpy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .1s ease;
    line-height: 1;
}
.tpy-btn:active { transform: translateY(1px); }
.tpy-btn-primary { background: #0ea5e9; color: #fff; }
.tpy-btn-primary:hover { background: #0284c7; color: #fff; }
.tpy-btn-whatsapp { background: #25d366; color: #fff; }
.tpy-btn-whatsapp:hover { background: #1ebe5d; color: #fff; }
.tpy-btn-ghost { background: transparent; color: #0f172a; border-color: #e5e7eb; }
.tpy-btn-ghost:hover { background: #f1f5f9; color: #0f172a; }
.tpy-btn-block { width: 100%; padding: 12px 16px; font-size: 15px; }

/* PAGINATION */
.tpy-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 32px 0 8px;
    flex-wrap: wrap;
}
.tpy-pagination .page-numbers {
    display: inline-flex;
    padding: 8px 12px;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.tpy-pagination .page-numbers.current { background: #0ea5e9; color: #fff; }

/* FILTER FORM */
.tpy-filter-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
}
.tpy-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.tpy-filter-item { display: flex; flex-direction: column; }
.tpy-filter-item label { font-size: 12px; color: #64748b; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.tpy-filter-item input,
.tpy-filter-item select {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    width: 100%;
}
.tpy-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: end;
}
@media (max-width: 900px) { .tpy-filter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tpy-filter-grid { grid-template-columns: 1fr; } }

/* ARCHIVE HEADER */
.tpy-archive-header { margin-bottom: 24px; }
.tpy-archive-title { font-size: 32px; margin: 0 0 8px; font-weight: 800; color: #0f172a; }
.tpy-archive-desc { color: #475569; }

.tpy-no-results {
    padding: 40px;
    text-align: center;
    background: #f8fafc;
    border-radius: 14px;
    color: #475569;
}

/* SINGLE */
.tpy-single-wrap { padding-top: 8px; }
.tpy-single-header { margin-bottom: 24px; }
.tpy-single-title { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.tpy-meta-bar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #475569;
    font-size: 14px;
}
.tpy-meta-bar li strong { color: #0f172a; }

.tpy-single-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 960px) { .tpy-single-grid { grid-template-columns: 1fr; } }

.tpy-single-main { min-width: 0; }
.tpy-section { background: #fff; border-radius: 14px; padding: 22px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }
.tpy-h2 { font-size: 22px; font-weight: 700; margin: 0 0 14px; color: #0f172a; }
.tpy-h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: #0f172a; }
.tpy-lead { font-size: 16px; color: #334155; margin: 0 0 14px; }
.tpy-content { font-size: 15px; color: #334155; }
.tpy-content p { margin: 0 0 12px; }

/* GALLERY */
.tpy-gallery { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }
.tpy-gallery-main {
    aspect-ratio: 16/9;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.tpy-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpy-gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 600px) { .tpy-gallery-thumbs { grid-template-columns: repeat(4, 1fr); } }
.tpy-gallery-thumb {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    padding: 0;
}
.tpy-gallery-thumb.is-active { border-color: #0ea5e9; }
.tpy-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* TABLE */
.tpy-table-wrap { overflow-x: auto; }
.tpy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tpy-table th, .tpy-table td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.tpy-table th { background: #f8fafc; color: #0f172a; font-weight: 700; }

/* INCLUDES GRID */
.tpy-includes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .tpy-includes-grid { grid-template-columns: 1fr; } }
.tpy-include-box ul { padding-left: 20px; margin: 0; }
.tpy-include-box li { margin: 4px 0; }
.tpy-included li::marker  { color: #16a34a; }
.tpy-not-included li::marker { color: #dc2626; }
.tpy-important-text { color: #475569; font-size: 14px; line-height: 1.6; }

/* HOTELS */
.tpy-hotel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .tpy-hotel-list { grid-template-columns: 1fr; } }
.tpy-hotel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.tpy-hotel-image {
    aspect-ratio: 16/10;
    background: #f3f4f6;
    overflow: hidden;
}
.tpy-hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.tpy-hotel:hover .tpy-hotel-image img { transform: scale(1.05); }
.tpy-hotel-body { padding: 14px; }
.tpy-hotel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.tpy-hotel h4 { margin: 0; font-size: 15px; font-weight: 700; }
.tpy-hotel-stars { color: #f59e0b; letter-spacing: 1px; font-size: 14px; flex-shrink: 0; }
.tpy-hotel-loc { font-size: 13px; color: #64748b; margin-bottom: 6px; }
.tpy-hotel p { margin: 0 0 8px; font-size: 14px; color: #475569; }
.tpy-hotel-extra { font-size: 13px; color: #16a34a; }

/* ACTIVITIES */
.tpy-activity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .tpy-activity-list { grid-template-columns: 1fr; } }
.tpy-activity {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.tpy-activity-image {
    aspect-ratio: 16/10;
    background: #f3f4f6;
    overflow: hidden;
}
.tpy-activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.tpy-activity:hover .tpy-activity-image img { transform: scale(1.05); }
.tpy-activity-body { padding: 14px; }
.tpy-activity h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.tpy-activity-time { font-size: 13px; color: #0ea5e9; font-weight: 600; }
.tpy-activity p { margin: 6px 0; font-size: 14px; color: #475569; }
.tpy-activity-extra { font-size: 13px; color: #16a34a; }

/* SIDEBAR */
.tpy-single-sidebar { position: sticky; top: 24px; }
.tpy-price-box {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.tpy-price-box .tpy-price-label { color: rgba(255,255,255,0.8); font-size: 12px; }
.tpy-price-box .tpy-price-value { font-size: 26px; font-weight: 800; color: #fff; }

.tpy-reservation-form {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tpy-reservation-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #475569; font-weight: 600; }
.tpy-reservation-form input,
.tpy-reservation-form select,
.tpy-reservation-form textarea {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    font-family: inherit;
    width: 100%;
}
.tpy-reservation-form input:focus,
.tpy-reservation-form select:focus,
.tpy-reservation-form textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.tpy-form-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.tpy-form-success {
    background: #dcfce7;
    color: #166534;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}
