/* =====================================================
   SGP DEVELOPMENT PAGES — development-styles.css
   Place at: /wp-content/themes/my-theme-child/sgp/development-styles.css
   ===================================================== */

/* ── Dev Type Badge ── */
.sgp-dev-badge-new     { background: #c0392b; color: #fff; }
.sgp-dev-badge-top     { background: #16a34a; color: #fff; }
.sgp-dev-badge-coming  { background: #7c3aed; color: #fff; }
.sgp-dev-badge-soldout { background: #6b7280; color: #fff; }

/* ── Archive Hero ── */
.sgp-dev-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #1e3a5f 100%);
    padding: 52px 0 36px;
    position: relative;
    overflow: hidden;
}

.sgp-dev-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.sgp-dev-hero-inner {
    position: relative;
    z-index: 1;
}

.sgp-dev-hero h1 {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 48px);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.sgp-dev-hero p {
    color: rgba(255,255,255,.65);
    font-size: 16px;
    margin-bottom: 28px;
    max-width: 560px;
}

/* ── Type Filter Tabs ── */
.sgp-dev-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sgp-dev-filter-tab {
    padding: 10px 24px;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,.25);
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
}

.sgp-dev-filter-tab:hover,
.sgp-dev-filter-tab.active {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

.sgp-dev-filter-tab.active-new    { background: #c0392b; color: #fff; border-color: #c0392b; }
.sgp-dev-filter-tab.active-top    { background: #16a34a; color: #fff; border-color: #16a34a; }

/* ── Developments Grid ── */
.sgp-dev-section {
    padding: 48px 0 60px;
    background: var(--light);
}

.sgp-dev-section-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sgp-dev-section-title .sgp-dev-count {
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-family: var(--sans);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.sgp-dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* ── Development Card ── */
.sgp-dev-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
}

.sgp-dev-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sgp-dev-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }

.sgp-dev-card-img {
    height: 220px;
    background: #e5e7eb center/cover no-repeat;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sgp-dev-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}

.sgp-dev-card:hover .sgp-dev-card-img img {
    transform: scale(1.04);
}

.sgp-dev-no-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.sgp-dev-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sgp-dev-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sgp-dev-card-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.35;
}

.sgp-dev-card-developer {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 12px;
    font-weight: 500;
}

.sgp-dev-card-price {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
}

.sgp-dev-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.sgp-dev-meta-item {
    background: var(--light);
    border-radius: 6px;
    padding: 8px 10px;
}

.sgp-dev-meta-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--grey);
    margin-bottom: 2px;
}

.sgp-dev-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.sgp-dev-unit-types {
    font-size: 12px;
    color: var(--grey);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: auto;
    line-height: 1.5;
}

.sgp-dev-unit-types strong { color: var(--dark); }

/* ── Single Development Page ── */
.sgp-dev-single {
    padding: 32px 0 60px;
    background: var(--light);
}

.sgp-dev-single-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.sgp-dev-single-header { margin-bottom: 24px; }

.sgp-dev-single-name {
    font-family: var(--serif);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 6px;
}

.sgp-dev-single-developer {
    font-size: 16px;
    color: var(--grey);
    margin-bottom: 14px;
    font-weight: 500;
}

.sgp-dev-single-price {
    font-family: var(--serif);
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    color: var(--red);
    margin-bottom: 6px;
}

/* Details grid on single page */
.sgp-dev-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.sgp-dev-detail-item {
    background: var(--white);
    padding: 14px 16px;
}

/* Sidebar enquiry card for developments */
.sgp-dev-enquiry-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.sgp-dev-enquiry-card h3 {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 6px;
}

.sgp-dev-enquiry-card p {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ── No Results ── */
.sgp-dev-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    color: var(--grey);
}

.sgp-dev-empty h3 {
    font-family: var(--serif);
    font-size: 20px;
    margin: 14px 0 8px;
    color: var(--dark);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sgp-dev-single-layout { grid-template-columns: 1fr; }
    .sgp-dev-enquiry-card { position: static; }
    .sgp-dev-details-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sgp-dev-grid { grid-template-columns: 1fr; }
    .sgp-dev-details-grid { grid-template-columns: 1fr 1fr; }
    .sgp-dev-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .sgp-dev-details-grid { grid-template-columns: 1fr; }
    .sgp-dev-filter-tabs { gap: 6px; }
    .sgp-dev-filter-tab { padding: 8px 16px; font-size: 13px; }
}

/* ════════════════════════════════
   SHARED COMPONENTS FOR DEVELOPMENTS
   (Slider, Facilities, Video, Map, Mortgage)
════════════════════════════════ */

/* ── Gallery Slider ── */
.sgp-slider-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/9;
    margin-bottom: 10px;
}
.sgp-slider-track {
    display: flex;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    height: 100%;
    will-change: transform;
}
.sgp-slide { flex: 0 0 100%; height: 100%; }
.sgp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgp-slider-prev,
.sgp-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}
.sgp-slider-prev { left: 12px; }
.sgp-slider-next { right: 12px; }
.sgp-slider-prev:hover,
.sgp-slider-next:hover { background: #c0392b; }
.sgp-slider-counter {
    position: absolute;
    bottom: 12px; right: 14px;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2;
    font-family: 'DM Sans', sans-serif;
}
.sgp-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0;
}
.sgp-slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.sgp-slider-dot.active { background: #c0392b; }
.sgp-gallery-thumbs-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 24px;
}
.sgp-gallery-thumbs-strip::-webkit-scrollbar { height: 4px; }
.sgp-gallery-thumbs-strip::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.sgp-thumb-btn {
    flex-shrink: 0;
    width: 72px; height: 52px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    opacity: .65;
    transition: all .2s;
}
.sgp-thumb-btn.active,
.sgp-thumb-btn:hover { border-color: #c0392b; opacity: 1; }
.sgp-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgp-no-gallery {
    aspect-ratio: 16/9;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 24px;
}

/* ── Facilities & Features ── */
.sgp-facilities-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sgp-facilities-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #111827;
    margin-bottom: 18px;
}
.sgp-fac-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sgp-fac-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: #374151;
    font-weight: 500;
    transition: all .2s;
}
.sgp-fac-tag:hover { border-color: #c0392b; background: #fff5f5; color: #c0392b; }
.sgp-fac-tag svg { flex-shrink: 0; color: #c0392b; }

/* ── Video Tour ── */
.sgp-video-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sgp-video-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #111827;
    margin-bottom: 16px;
}
.sgp-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.sgp-video-wrap iframe,
.sgp-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── 3D Tour ── */
.sgp-tour-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sgp-tour-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #111827;
    margin-bottom: 16px;
}
.sgp-tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    transition: background .2s;
    margin-bottom: 8px;
}
.sgp-tour-btn:hover { background: #c0392b; }
.sgp-tour-embed { margin-top: 16px; }
.sgp-tour-embed iframe { width: 100%; height: 480px; border: none; border-radius: 8px; }

/* ── Map Section ── */
.sgp-map-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sgp-map-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #111827;
    margin-bottom: 16px;
}
.sgp-map {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e8e8;
}

/* ── Description ── */
.sgp-description {
    background: #fff;
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sgp-description h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #111827;
    margin-bottom: 16px;
}
.sgp-description p { line-height: 1.75; color: #374151; font-size: 14px; }

/* ── Mortgage Calculator ── */
.sgp-mortgage-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sgp-mortgage-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #111827;
    margin-bottom: 20px;
}
.sgp-mortgage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sgp-mortgage-inputs {}
.sgp-m-field { margin-bottom: 14px; }
.sgp-m-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 5px;
}
.sgp-m-field input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #111827;
    outline: none;
    transition: all .2s;
}
.sgp-m-field input:focus { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.sgp-mortgage-result {
    background: #111827;
    border-radius: 12px;
    padding: 24px 20px;
    color: #fff;
    text-align: center;
}
.sgp-m-result-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.sgp-m-result-value { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.sgp-m-breakdown { font-size: 12px; color: rgba(255,255,255,.65); line-height: 2; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; text-align: left; }
.sgp-m-breakdown div { display: flex; justify-content: space-between; }
.sgp-m-disclaimer { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 12px; line-height: 1.6; }

/* ── Single Dev Header ── */
.sgp-single-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 14px;
    font-family: 'DM Sans', sans-serif;
}
.sgp-single-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sgp-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; font-family: 'DM Sans', sans-serif; }

/* ── Sidebar components ── */
.sgp-agent-info { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #e5e7eb; }
.sgp-agent-avatar { width: 46px; height: 46px; background: #111827; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; font-family: 'Playfair Display', serif; flex-shrink: 0; }
.sgp-agent-name { font-weight: 700; font-size: 14px; color: #111827; }
.sgp-agent-role { font-size: 12px; color: #6b7280; }
.sgp-whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff; text-decoration: none; border-radius: 8px; padding: 12px; font-weight: 700; font-size: 14px; font-family: 'DM Sans', sans-serif; transition: background .2s; }
.sgp-whatsapp-btn:hover { background: #128C7E; }
.sgp-enquiry-form h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; color: #111827; margin-bottom: 12px; }
.sgp-enquiry-form input,
.sgp-enquiry-form textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 6px; padding: 9px 11px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: #111827; margin-bottom: 8px; outline: none; transition: border-color .2s; resize: vertical; }
.sgp-enquiry-form input:focus,
.sgp-enquiry-form textarea:focus { border-color: #c0392b; }
.sgp-submit-enquiry { width: 100%; background: #c0392b; color: #fff; border: none; border-radius: 6px; padding: 12px; font-size: 14px; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background .2s; }
.sgp-submit-enquiry:hover { background: #922b21; }
.sgp-listing-meta { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 9px; }
.sgp-listing-meta > div { display: flex; justify-content: space-between; font-size: 13px; }
.sgp-listing-meta span { color: #6b7280; }
.sgp-listing-meta strong { color: #111827; text-align: right; }
.sgp-share-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.08); padding: 18px 22px; }
.sgp-share-card h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 15px; color: #111827; margin-bottom: 12px; }
.sgp-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sgp-share-btn { padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; font-family: 'DM Sans', sans-serif; text-decoration: none; border: none; cursor: pointer; transition: opacity .2s; display: inline-block; }
.sgp-share-btn:hover { opacity: .85; }
.sgp-share-btn.wa   { background: #25D366; color: #fff; }
.sgp-share-btn.fb   { background: #1877f2; color: #fff; }
.sgp-share-btn.copy { background: #f9fafb; color: #111827; border: 1px solid #e5e7eb; }

/* ── Form message ── */
.sgp-form-message { padding: 11px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; font-family: 'DM Sans', sans-serif; }
.sgp-form-message.success { background: #dcfce7; color: #166534; }
.sgp-form-message.error   { background: #fee2e2; color: #991b1b; }

/* ── Breadcrumb ── */
.sgp-breadcrumb { font-size: 13px; color: #6b7280; margin-bottom: 22px; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sgp-breadcrumb a { color: #6b7280; text-decoration: none; }
.sgp-breadcrumb a:hover { color: #c0392b; }
.sgp-breadcrumb span { color: #111827; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .sgp-mortgage-grid { grid-template-columns: 1fr; }
    .sgp-dev-details-grid { grid-template-columns: 1fr 1fr; }
}
