/* ===========================================================
   TravoWay Tour Manager — Frontend Styles
   Brand palette matched to the site's purple/orange identity.
   =========================================================== */
:root{
	--tp-purple:#5a2a86;
	--tp-purple-dark:#3f1c62;
	--tp-orange:#e8973b;
	--tp-orange-dark:#d67f1f;
	--tp-cream:#faf3ea;
	--tp-text:#2b2b2b;
	--tp-muted:#6b6b6b;
	--tp-border:#ececec;
	--tp-radius:12px;
}

/* ---------- Search Bar ---------- */
.tp-search-bar .tp-search-row{display:flex;gap:10px;flex-wrap:wrap;background:#fff;padding:14px;border-radius:var(--tp-radius);box-shadow:0 2px 14px rgba(0,0,0,.08);}
.tp-search-bar input,.tp-search-bar select{flex:1;min-width:150px;padding:10px 12px;border:1px solid #ddd;border-radius:8px;font-size:14px;}
.tp-search-button{background:linear-gradient(135deg,var(--tp-purple),var(--tp-purple-dark));color:#fff;border:none;padding:10px 24px;border-radius:8px;cursor:pointer;font-weight:600;}
.tp-search-button:hover{opacity:.92;}

/* ---------- Tour Grid ---------- */
.tp-tour-grid{display:grid;gap:24px;grid-template-columns:repeat(3,1fr);}
.tp-tour-grid.tp-cols-1{grid-template-columns:1fr;}
.tp-tour-grid.tp-cols-2{grid-template-columns:repeat(2,1fr);}
.tp-tour-grid.tp-cols-4{grid-template-columns:repeat(4,1fr);}
@media(max-width:900px){.tp-tour-grid{grid-template-columns:repeat(2,1fr)!important;}}
@media(max-width:600px){.tp-tour-grid{grid-template-columns:1fr!important;}}

.tp-tour-card{background:#fff;border-radius:var(--tp-radius);overflow:hidden;box-shadow:0 2px 14px rgba(0,0,0,.08);transition:transform .15s ease;}
.tp-tour-card:hover{transform:translateY(-4px);}
.tp-card-image img{width:100%;height:200px;object-fit:cover;display:block;}
.tp-card-body{padding:16px;}
.tp-card-title{margin:0 0 6px;font-size:17px;}
.tp-card-title a{color:var(--tp-purple);text-decoration:none;font-weight:700;}
.tp-card-destination{color:var(--tp-muted);font-size:13px;margin:0 0 10px;}
.tp-card-meta{display:flex;justify-content:space-between;font-size:13px;color:#444;margin-bottom:12px;}
.tp-card-price{font-weight:700;color:var(--tp-purple);}
.tp-card-button{display:inline-block;background:linear-gradient(135deg,var(--tp-purple),var(--tp-purple-dark));color:#fff;padding:9px 18px;border-radius:8px;text-decoration:none;border:none;cursor:pointer;font-size:14px;font-weight:600;}
.tp-card-button:hover{opacity:.92;color:#fff;}
.tp-no-results{padding:20px;text-align:center;color:var(--tp-muted);}
.tp-pagination{margin-top:20px;text-align:center;}
.tp-pagination .page-numbers{display:inline-block;margin:0 4px;padding:6px 12px;border:1px solid #ddd;border-radius:6px;text-decoration:none;color:#333;}
.tp-pagination .page-numbers.current{background:var(--tp-purple);color:#fff;border-color:var(--tp-purple);}

/* ---------- Carousel ---------- */
.tp-tour-carousel{position:relative;overflow:hidden;}
.tp-carousel-track{display:flex;gap:20px;transition:transform .35s ease;}
.tp-carousel-slide{flex:0 0 calc(33.333% - 14px);background:#fff;border-radius:var(--tp-radius);overflow:hidden;box-shadow:0 2px 14px rgba(0,0,0,.08);}
.tp-carousel-slide img{width:100%;height:180px;object-fit:cover;}
.tp-carousel-prev,.tp-carousel-next{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #ddd;border-radius:50%;width:36px;height:36px;cursor:pointer;z-index:2;color:var(--tp-purple);}
.tp-carousel-prev{left:-6px;}
.tp-carousel-next{right:-6px;}
@media(max-width:900px){.tp-carousel-slide{flex:0 0 calc(50% - 10px);}}
@media(max-width:600px){.tp-carousel-slide{flex:0 0 100%;}}

/* ---------- Package Sidebar widget (Elementor) ---------- */
.tp-package-sidebar{background:#fff;border:1px solid var(--tp-border);border-radius:var(--tp-radius);padding:20px;}
.tp-sidebar-price{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px;}
.tp-sidebar-price span{color:var(--tp-muted);font-size:13px;}
.tp-sidebar-price strong{font-size:24px;color:var(--tp-purple);}
.tp-sidebar-list{list-style:none;margin:0 0 18px;padding:0;}
.tp-sidebar-list li{display:flex;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #f2f2f2;font-size:14px;color:var(--tp-text);}
.tp-sidebar-list .dashicons{color:var(--tp-orange);}

/* ---------- Inquiry / Quotation form ---------- */
.tp-inquiry-form{background:#fff;border-radius:var(--tp-radius);padding:22px;max-width:480px;}
.tp-form-title{margin-top:0;color:var(--tp-purple);font-size:20px;}
.tp-form-row{margin-bottom:14px;}
.tp-form-row-split{display:flex;gap:12px;margin-bottom:14px;}
.tp-form-row-split .tp-form-row{flex:1;margin-bottom:0;}
.tp-form-row label{display:block;font-weight:600;font-size:13px;margin-bottom:5px;color:var(--tp-text);}
.tp-form-row input,.tp-form-row textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:8px;box-sizing:border-box;font-size:14px;}
.tp-form-row input:focus,.tp-form-row textarea:focus{outline:none;border-color:var(--tp-purple);box-shadow:0 0 0 3px rgba(90,42,134,.12);}
.tp-consent-row label{display:flex;gap:8px;font-weight:400;align-items:flex-start;font-size:12px;color:var(--tp-muted);}
.tp-honeypot-field{position:absolute;left:-9999px;top:-9999px;}
.tp-form-message{font-size:13px;margin-bottom:10px;min-height:0;}
.tp-form-message.tp-success{color:#1a7f5a;}
.tp-form-message.tp-error{color:#c0392b;}
.tp-notice{background:#fff8e1;padding:10px;border-radius:8px;font-size:13px;color:#8a6d00;}
.tp-submit-inquiry{width:100%;background:linear-gradient(135deg,var(--tp-purple),var(--tp-purple-dark));color:#fff;border:none;padding:13px;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;}
.tp-submit-inquiry:hover{opacity:.92;}
.tp-submit-inquiry:disabled{opacity:.6;cursor:not-allowed;}

.tp-inquiry-popup-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px;}
.tp-inquiry-popup{background:#fff;border-radius:var(--tp-radius);max-width:480px;width:100%;position:relative;max-height:90vh;overflow-y:auto;}
.tp-popup-close{position:absolute;top:8px;right:12px;background:none;border:none;font-size:26px;cursor:pointer;line-height:1;color:#666;}

/* ===========================================================
   Single Tour Package — dedicated template
   =========================================================== */
.tp-single-package-wrap{max-width:1180px;margin:0 auto;padding:0 20px;}

.tp-hero-section{background:var(--tp-cream);padding:36px 0 30px;margin-bottom:36px;}

.tp-breadcrumb-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap;}
.tp-breadcrumb-nav{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--tp-text);text-decoration:none;white-space:nowrap;}
.tp-breadcrumb-nav:hover{color:var(--tp-purple);}
.tp-nav-disabled{color:#bbb;pointer-events:none;}
.tp-breadcrumb-pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border-radius:24px;padding:8px 20px;box-shadow:0 2px 8px rgba(0,0,0,.06);font-size:13px;}
.tp-pill-badge{color:var(--tp-orange-dark);font-weight:700;}
.tp-pill-title{color:var(--tp-text);}

.tp-single-title{text-align:center;color:var(--tp-purple);font-size:30px;font-weight:800;margin:0 0 24px;}

.tp-single-hero-image-wrap{border-radius:16px;overflow:hidden;box-shadow:0 8px 30px rgba(0,0,0,.12);margin-bottom:0;}
.tp-single-hero-image{width:100%;max-height:480px;object-fit:cover;display:block;}

.tp-share-bar{display:flex;align-items:center;gap:10px;background:var(--tp-purple);padding:12px 20px;border-radius:0 0 10px 10px;margin-top:-6px;position:relative;}
.tp-share-label{color:#fff;font-weight:700;font-size:13px;margin-right:6px;}
.tp-share-icon{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;}
.tp-share-icon:hover{background:rgba(255,255,255,.3);}
.tp-share-icon .dashicons{font-size:16px;width:16px;height:16px;}

.tp-single-content-grid{display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:start;margin-bottom:20px;}
@media(max-width:900px){.tp-single-content-grid{grid-template-columns:1fr;}}

.tp-single-lead{font-size:16px;color:var(--tp-text);line-height:1.7;margin-bottom:18px;}
.tp-single-lead strong{color:var(--tp-purple);}

.tp-single-meta-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px;}
.tp-meta-pill{display:flex;align-items:center;gap:6px;background:var(--tp-cream);color:var(--tp-text);padding:8px 14px;border-radius:20px;font-size:13px;}
.tp-meta-pill .dashicons{color:var(--tp-orange-dark);font-size:16px;width:16px;height:16px;}

.tp-single-description{line-height:1.7;margin-bottom:10px;color:var(--tp-text);}

.tp-single-block{margin:30px 0;}
.tp-single-block h2{font-size:20px;margin-bottom:14px;color:var(--tp-purple);font-weight:800;}
.tp-rich-content{color:var(--tp-text);line-height:1.75;}
.tp-rich-content p{margin:0 0 10px;}
.tp-rich-content ul,.tp-rich-content ol{padding-left:20px;margin:0 0 10px;}
.tp-rich-content li{margin-bottom:6px;}
.tp-rich-content li strong{color:var(--tp-text);}

.tp-single-gallery{margin:30px 0;}
.tp-single-gallery h2{font-size:20px;margin-bottom:14px;color:var(--tp-purple);font-weight:800;}
.tp-single-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.tp-single-gallery-grid img{width:100%;height:150px;object-fit:cover;border-radius:10px;}
@media(max-width:600px){.tp-single-gallery-grid{grid-template-columns:repeat(2,1fr);}}

.tp-included-excluded{display:grid;grid-template-columns:1fr 1fr;gap:24px;background:var(--tp-cream);padding:22px;border-radius:var(--tp-radius);}
@media(max-width:600px){.tp-included-excluded{grid-template-columns:1fr;}}
.tp-ie-included h2{color:#1a7f5a;}
.tp-ie-excluded h2{color:#c0392b;}

.tp-single-sidebar{display:flex;flex-direction:column;gap:20px;position:sticky;top:20px;}
.tp-single-inquiry-box{background:var(--tp-cream);border:1px solid var(--tp-border);border-radius:var(--tp-radius);}
.tp-single-inquiry-box .tp-inquiry-form{padding:22px;max-width:none;background:transparent;}

/* ---------- Related Tours ---------- */
.tp-related-section{background:#fff;padding:10px 0 50px;}
.tp-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
@media(max-width:900px){.tp-related-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.tp-related-grid{grid-template-columns:1fr;}}
.tp-related-card{border:1px solid var(--tp-border);border-radius:var(--tp-radius);overflow:hidden;transition:transform .15s ease;}
.tp-related-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.08);}
.tp-related-image img{width:100%;height:190px;object-fit:cover;display:block;}
.tp-related-body{padding:16px;}
.tp-related-body h3{margin:0 0 10px;font-size:16px;line-height:1.4;}
.tp-related-body h3 a{color:var(--tp-purple);text-decoration:none;font-weight:700;}
.tp-related-readmore{color:var(--tp-orange-dark);font-weight:700;font-size:13px;text-decoration:none;}
.tp-related-readmore:hover{text-decoration:underline;}
