/* ==========================================================================
   TravelPack.pro – inner pages (about, blog, gallery, contacts, hotels)
   Builds on travel_css/style.css tokens: Prata headings, Nunito body,
   accent #D03000, neutral #F7F7F7, radius 13px, .wrap max 1440px.
   ========================================================================== */
:root { --tp-accent: #D03000; --tp-ink: #222; --tp-muted: #919193; --tp-soft: #F7F7F7; --tp-radius: 13px; --tp-gold: #c49a6c; }

.breadcrumbs .current { color: var(--tp-ink); }
.page.default .page_head .title span { color: var(--tp-muted); font-size: .55em; margin-left: 12px; vertical-align: middle; }
.page.default .page_head .subtitle { font-size: 21px; color: var(--tp-muted); margin-top: 6px; }
.page.default .page_head { margin-bottom: 34px; }
.page.default.static-page .left_content { max-width: 1000px !important; float: none; width: 100%; }
.page.static-page .left_content h2 { font-family: 'Prata', serif; font-size: 30px; color: var(--tp-ink); margin: 34px 0 12px; }
.page.static-page .left_content h3 { font-family: 'Prata', serif; font-size: 23px; color: var(--tp-ink); margin: 26px 0 10px; }
.page.static-page .left_content p, .page.static-page .left_content li { font-size: 19px; line-height: 1.7; color: #4a4a4a; }
.page.static-page .left_content p { margin: 12px 0; }
.page.static-page .left_content ul { margin: 12px 0 12px 22px; list-style: disc; }
.page.static-page .left_content a:not(.btn) { color: var(--tp-accent); }
.page.static-page .lead { font-size: 24px; font-style: italic; color: var(--tp-ink); margin-bottom: 18px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.card-soft { background: var(--tp-soft); border-radius: var(--tp-radius); padding: 30px 34px; }
.card-soft h3:first-child { margin-top: 0; }
.cta-band { background: var(--tp-ink); color: #fff; border-radius: var(--tp-radius); padding: 40px 44px; margin: 44px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h3 { font-family: 'Prata', serif; font-size: 28px; margin: 0 0 6px; color: #fff; }
.cta-band p { color: rgba(255,255,255,.7); margin: 0; font-size: 18px; }
.cta-band .btn { float: none; display: inline-block; }
.btn.btn--outline { background: transparent; border: 2px solid var(--tp-accent); color: var(--tp-accent); line-height: 46px; }
.btn.btn--gold { background: var(--tp-gold); }

/* ---- blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.blog-card { background: var(--tp-soft); border-radius: var(--tp-radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card__img { height: 220px; background: #ddd center/cover no-repeat; display: block; }
.blog-card__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card__tag { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-accent); font-weight: 700; margin-bottom: 10px; }
.blog-card__title { font-family: 'Prata', serif; font-size: 23px; line-height: 1.3; margin: 0 0 12px; }
.blog-card__title a { color: var(--tp-ink); }
.blog-card__text { font-size: 17px; line-height: 1.6; color: #555; flex: 1; }
.blog-card__meta { margin-top: 18px; font-size: 14px; color: var(--tp-muted); display: flex; justify-content: space-between; }
.blog-card__meta a { color: var(--tp-accent); font-weight: 700; }
.blog-article { max-width: 860px; }
.blog-article h2 { margin-top: 30px; }

/* ---- gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 10px 0 40px; }
.gallery-grid a { display: block; height: 230px; border-radius: var(--tp-radius); background: #ddd center/cover no-repeat; position: relative; overflow: hidden; }
.gallery-grid a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-size: 15px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.gallery-grid a:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; height: 478px; }

/* ---- contacts ---- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form .input, .contact-form textarea, .contact-form select { height: 58px; border-radius: 8px; background: var(--tp-soft); display: block; width: 100%; border: 0; font-size: 18px; color: var(--tp-ink); padding: 0 20px; margin-bottom: 16px; font-family: 'Nunito', sans-serif; }
.contact-form textarea { height: 170px; padding: 16px 20px; resize: vertical; }
.contact-form .input:focus, .contact-form textarea:focus { outline: 2px solid var(--tp-accent); }
.contact-form .btn { float: none; display: inline-block; border: 0; cursor: pointer; font-family: 'Nunito', sans-serif; }
.contact-info { background: var(--tp-soft); border-radius: var(--tp-radius); padding: 30px 34px; }
.contact-info h3 { margin-top: 0; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-muted); margin-top: 18px; }
.contact-info dd { margin: 4px 0 0; font-size: 19px; color: var(--tp-ink); }
.contact-info dd a { color: var(--tp-accent); }
.form-msg { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 17px; }
.form-msg.ok { background: #e8f6ea; color: #1f7a33; }
.form-msg.err { background: #fdecea; color: #b3261e; }

/* ---- 404 ---- */
.notfound { text-align: center; padding: 20px 0 60px; }
.notfound .code { font-family: 'Prata', serif; font-size: 140px; line-height: 1; color: var(--tp-soft); -webkit-text-stroke: 2px var(--tp-accent); }
.notfound p { font-size: 21px; color: var(--tp-muted); }
.notfound .links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.notfound .links .btn { float: none; }

/* ---- hotels listing ---- */
.hotels-toolbar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.city-tabs { display: flex; background: var(--tp-soft); border-radius: 999px; padding: 4px; }
.city-tabs a { padding: 12px 26px; border-radius: 999px; font-size: 18px; font-weight: 700; color: var(--tp-ink); }
.city-tabs a.active { background: var(--tp-accent); color: #fff; }
.hotels-search { display: flex; gap: 10px; flex: 1; min-width: 320px; flex-wrap: wrap; }
.hotels-search input[type=search], .hotels-search select { height: 54px; border: 0; border-radius: 8px; background: var(--tp-soft); font-size: 17px; padding: 0 18px; color: var(--tp-ink); font-family: 'Nunito', sans-serif; }
.hotels-search input[type=search] { flex: 2; min-width: 200px; }
.hotels-search select { flex: 1; min-width: 160px; }
.hotels-search .btn { float: none; height: 54px; line-height: 54px; border: 0; cursor: pointer; font-family: 'Nunito', sans-serif; }
.hotels-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.hotels-filters .chip { padding: 8px 16px; border-radius: 999px; background: var(--tp-soft); color: var(--tp-ink); font-size: 15px; }
.hotels-filters .chip b { color: var(--tp-muted); font-weight: 400; margin-left: 4px; }
.hotels-filters .chip.active { background: var(--tp-ink); color: #fff; }
.hotels-filters .chip.active b { color: rgba(255,255,255,.7); }
.hotels-filters .results-count { margin-left: auto; color: var(--tp-muted); font-size: 16px; }
.hotels-empty { font-size: 19px; color: var(--tp-muted); padding: 30px 0; }
.hotels-empty a { color: var(--tp-accent); }
.hotels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.hotel-card { background: var(--tp-soft); border-radius: var(--tp-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.hotel-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.hotel-card__img { display: block; height: 240px; background: #ccc center/cover no-repeat; position: relative; }
.hotel-card__img[data-letter] { background: linear-gradient(135deg, #2b2b2b, #4a4a4a); }
.hotel-card__img[data-letter]::after { content: attr(data-letter); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Prata', serif; font-size: 96px; color: rgba(255,255,255,.18); }
.hotel-card__city { position: absolute; left: 16px; top: 16px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.hotel-card__body { padding: 20px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.hotel-card .rating-stars { display: flex; gap: 2px; margin-bottom: 8px; }
.hotel-card .rating-stars .star, .hotel-badges .rating-stars .star { width: 18px; height: 18px; }
.hotel-apt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-gold); font-weight: 700; margin-bottom: 8px; display: inline-block; }
.hotel-card__title { font-family: 'Prata', serif; font-size: 22px; line-height: 1.3; margin: 0 0 6px; }
.hotel-card__title a { color: var(--tp-ink); }
.hotel-card__addr { font-size: 14px; color: var(--tp-muted); margin: 0 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hotel-card__text { font-size: 15px; line-height: 1.55; color: #555; flex: 1; margin: 0; }
.hotel-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.hotel-card__price { font-size: 15px; color: var(--tp-muted); }
.hotel-card__price b { font-size: 20px; color: var(--tp-ink); }
.hotel-card__link { color: var(--tp-accent); font-weight: 700; font-size: 15px; }
.hotels-pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0 10px; flex-wrap: wrap; }
.hotels-pagination .pg { min-width: 44px; height: 44px; line-height: 44px; text-align: center; padding: 0 14px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-ink); font-size: 17px; }
.hotels-pagination .pg.current { background: var(--tp-accent); color: #fff; }
.hotels-seo-text { max-width: 900px; margin: 50px 0 20px; }
.hotels-seo-text h2 { font-family: 'Prata', serif; font-size: 28px; margin-bottom: 10px; }
.hotels-seo-text p { font-size: 18px; line-height: 1.7; color: #555; }

/* ---- hotel page ---- */
.hotel-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 36px; }
.hotel-gallery__main { display: block; height: 480px; border-radius: var(--tp-radius); background: #ccc center/cover no-repeat; }
.hotel-gallery__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hotel-gallery__thumb { display: block; border-radius: var(--tp-radius); background: #ccc center/cover no-repeat; position: relative; min-height: 120px; }
.hotel-gallery__thumb .more { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; border-radius: var(--tp-radius); }
.hotel-gallery__hidden { display: none; }
.hotel-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.hotel-layout .left_content, .hotel-layout .right_content { max-width: none; float: none; }
.hotel-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.hotel-badges .rating-stars { display: flex; gap: 2px; }
.badge { background: var(--tp-soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--tp-ink); }
.badge--city { background: var(--tp-ink); color: #fff; }
.hotel-description p { font-size: 19px; line-height: 1.7; color: #4a4a4a; }
.hotel-rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hotel-rooms li { background: var(--tp-soft); border-radius: 8px; padding: 14px 18px; display: flex; justify-content: space-between; font-size: 17px; }
.hotel-rooms .room-occ { color: var(--tp-muted); font-size: 15px; }
.hotel-address { font-size: 18px; }
.hotel-map { background: var(--tp-soft); border-radius: var(--tp-radius); min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.hotel-map .btn { float: none; }
.hotel-map__ext { color: var(--tp-accent); font-weight: 700; }
.hotel-map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--tp-radius); }
.hotel-side { position: sticky; top: 110px; }
.hotel-book { background: var(--tp-ink); color: #fff; border-radius: var(--tp-radius); padding: 28px; text-align: center; }
.hotel-book__price { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.hotel-book__price b { font-size: 30px; color: #fff; }
.hotel-book .btn { float: none; display: block; width: 100%; padding: 0; text-align: center; }
.hotel-book__contact { margin-top: 16px; font-size: 16px; line-height: 1.8; }
.hotel-book__contact a { color: #fff; }
.hotel-facts { background: var(--tp-soft); border-radius: var(--tp-radius); padding: 10px 24px; margin-top: 16px; }
.hotel-facts div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 16px; }
.hotel-facts div:last-child { border: 0; }
.hotel-facts span { color: var(--tp-muted); }
.hotel-side__all { display: block; margin-top: 18px; color: var(--tp-accent); font-weight: 700; }
.hotel-related { margin-top: 50px; }
.hotel-related h2 { font-family: 'Prata', serif; font-size: 28px; margin-bottom: 20px; }
.hotel-related .hotels-grid { grid-template-columns: repeat(4, 1fr); }
.hotel-related .hotel-card__img { height: 180px; }

/* ---- RTL ---- */
[dir=rtl] .page_head .title, [dir=rtl] .page_head .subtitle, [dir=rtl] .hotels-seo-text, [dir=rtl] .hotel-main, [dir=rtl] .hotel-card__body { text-align: right; }
[dir=rtl] .hotels-filters .results-count { margin-left: 0; margin-right: auto; }

/* ---- responsive ---- */
@media (max-width: 1200px) { .hotels-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); } .hotel-related .hotels-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .hotel-layout, .contact-grid, .two-cols { grid-template-columns: 1fr; } .hotel-side { position: static; } .hotel-gallery { grid-template-columns: 1fr; } .hotel-gallery__main { height: 300px; } .hotel-gallery__thumbs { grid-template-columns: repeat(4, 1fr); } .hotel-gallery__thumb { min-height: 90px; } .gallery-grid a:nth-child(6n+1) { grid-column: auto; grid-row: auto; height: 230px; } }
@media (max-width: 640px) { .hotels-grid, .blog-grid, .hotel-related .hotels-grid, .gallery-grid, .hotel-rooms { grid-template-columns: 1fr; } .page.default .page_head .subtitle { font-size: 17px; } .notfound .code { font-size: 90px; } .city-tabs a { padding: 10px 18px; font-size: 16px; } }

/* ---- header tweaks (inner + home) ---- */
.top_panel .favorites-count { display: none !important; }
.top_panel .center .menu ul li { margin-right: 34px; }
@media (min-width: 1200px) { .top_panel .center .menu ul li a { font-size: 17px; } }

.page.static-page .left_content ul.hotel-rooms { list-style: none; margin-left: 0; }
.hotel-rooms li::before { display: none; }

/* buttons rendered as <button> lose the template .btn look (template resets button) */
button.btn, .contact-form button.btn, .hotels-search button.btn, .hotel-map button.btn { background: var(--tp-accent); color: #fff; height: 54px; line-height: 54px; padding: 0 30px; font-size: 19px; border-radius: 8px; border: 0; cursor: pointer; font-family: "Nunito", sans-serif; display: inline-block; float: none; }
button.btn span { color: #fff; }
button.btn.btn--outline { background: transparent; border: 2px solid var(--tp-accent); line-height: 50px; }
button.btn.btn--outline span { color: var(--tp-accent); }

/* ---- destination content pages (Makkah/Madinah guides) ---- */
html[dir="rtl"] body { direction: rtl; }
.destination-body { max-width: 860px; margin: 0 auto; line-height: 1.7; }
.destination-body h2 { margin-top: 42px; font-size: 26px; }
.destination-body h3 { margin-top: 22px; font-size: 19px; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; margin: 10px 0 24px; }
.lang-switch a { padding: 4px 10px; border-radius: 14px; border: 1px solid #ddd; color: #555; text-decoration: none; }
.lang-switch a.current { background: var(--tp-accent); border-color: var(--tp-accent); color: #fff; }
.destination-hero img, .destination-inline-image img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 10px; display: block; background: #eee; }
.destination-hero figcaption, .destination-inline-image figcaption { font-size: 13px; color: #777; margin-top: 6px; }
.destination-intro { font-size: 19px; color: #333; margin-bottom: 8px; }
.destination-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.destination-table th, .destination-table td { border: 1px solid #e2e2e2; padding: 8px 12px; text-align: left; font-size: 15px; }
html[dir="rtl"] .destination-table th, html[dir="rtl"] .destination-table td { text-align: right; }
.destination-table th { background: #f7f7f7; }
.destination-faq .faq-item { margin-bottom: 18px; }
.destination-notice { background: #fff8e6; border: 1px solid #f0d98c; border-radius: 8px; padding: 14px 18px; margin: 28px 0; font-size: 15px; }
.destination-cta { margin: 34px 0; }
.destination-cta .btn-book { display: inline-block; background: var(--tp-accent); color: #fff; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.destination-sources ul { padding-left: 18px; font-size: 14px; color: #555; }
html[dir="rtl"] .destination-sources ul { padding-left: 0; padding-right: 18px; }
.destination-sources .verified-date { font-size: 13px; color: #888; margin-top: 8px; }

.hotel-explore-city { margin: 34px 0; padding: 22px 26px; background: #f7f7f7; border-radius: 10px; }
.hotel-explore-city h2 { margin-top: 0; font-size: 20px; }
.hotel-explore-city__list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hotel-explore-city__list li::before { display: none; }
.hotel-explore-city__list a { color: var(--tp-accent); text-decoration: none; font-weight: 600; }
.hotel-explore-city__list a:hover { text-decoration: underline; }

.destination-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 10px 0 30px; }
.gallery-card { border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; }
.gallery-card img { width: 100%; height: 190px; object-fit: cover; display: block; background: #eee; }
.gallery-card figcaption { padding: 12px 14px 16px; }
.gallery-card__caption { font-weight: 700; font-size: 15px; margin: 0 0 4px; color: #222; }
.gallery-card__generated { font-size: 12px; color: #b06a00; margin: 0 0 4px; }
.gallery-card__credit { font-size: 12px; color: #777; margin: 0 0 4px; }
.gallery-card__credit a { color: #777; text-decoration: underline; }
.gallery-card__meta { font-size: 12px; color: #999; margin: 0 0 10px; }
.gallery-card__download { display: inline-block; background: var(--tp-accent); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 6px; text-decoration: none; }
@media (max-width: 900px) { .destination-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .destination-gallery-grid { grid-template-columns: 1fr; } }

/* obfuscated e-mail */
a.eml .eml-u, a.eml .eml-d { unicode-bidi: bidi-override; direction: rtl; display: inline-block; }
a.eml .eml-at::before { content: "@"; }
